Puzzle: sequence without multiples of 3
09-14-2019, 12:30 AM (This post was last modified: 09-14-2019 12:39 AM by Thomas Okken.)
Post: #5
 Thomas Okken Senior Member Posts: 1,767 Joined: Feb 2014
RE: Puzzle: sequence without multiples of 3
f(n) = floor((n-1)*1.5)+1

This wouldn't be much of a puzzle if the most obvious formula happened to be the solution, but I thought I'd get it out of the way. As a baseline, if you will.

UPDATE to add the answer to the second question: f(10^6) = 1,499,999
 « Next Oldest | Next Newest »

 Messages In This Thread Puzzle: sequence without multiples of 3 - Albert Chan - 09-13-2019, 07:05 PM RE: Puzzle: sequence without multiples of 3 - Voldemar - 09-13-2019, 08:57 PM RE: Puzzle: sequence without multiples of 3 - Voldemar - 09-13-2019, 09:02 PM RE: Puzzle: sequence without multiples of 3 - Albert Chan - 09-13-2019, 09:43 PM RE: Puzzle: sequence without multiples of 3 - Thomas Okken - 09-14-2019 12:30 AM RE: Puzzle: sequence without multiples of 3 - John Keith - 09-14-2019, 12:54 AM RE: Puzzle: sequence without multiples of 3 - Albert Chan - 09-14-2019, 01:01 AM RE: Puzzle: sequence without multiples of 3 - Gerald H - 09-14-2019, 05:37 AM RE: Puzzle: sequence without multiples of 3 - Albert Chan - 09-14-2019, 08:29 AM

User(s) browsing this thread: