Puzzle: sequence without multiples of 3
09-14-2019, 12:54 AM (This post was last modified: 09-14-2019 11:24 AM by John Keith.)
Post: #6
 John Keith Senior Member Posts: 793 Joined: Dec 2013
RE: Puzzle: sequence without multiples of 3
A simple program to generate the sequence, which is A001651:

Code:
 \<< \-> n   \<< 1 1 n     START DUP 1 + DUP 2 +     NEXT n 2 * 1 + \->LIST   \>> \>>

Returns 2n+1 terms. Not much use to compute f(10^6) though.
 « 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: 1 Guest(s)