Puzzle: sequence without multiples of 3
|
09-14-2019, 01:01 AM
(This post was last modified: 09-16-2019 08:13 PM by Albert Chan.)
Post: #7
|
|||
|
|||
RE: Puzzle: sequence without multiples of 3
Hi, Thomas Okken
You got it! I saw the formula from a book review, The Irrationals, by Julian Havil The formula itself is trivial, but the procedure to get it can be used for complicated sequences. Example: for non-squares sequence Code: F=n² 1 4 9 16 25 36 49 64 81 This assumed f is non-decreasing function. f* is max k such that f(k) < n, thus we have 2x1, 4x2, 6x3, 8x4 ... → f*(n) = floor(√(n) + 0.5) → non_squares(n) = n + f* = n + floor(√(n) + 0.5) |
|||
« 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: 2 Guest(s)