The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A241666 Gives the value (either 0 or 1) that the trajectory of n under A241663 eventually reaches. 2
0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0
COMMENTS
a(n) = 1 for n = 1, 5, 25, 29, 125, 145, 149, 625, 725, 745, 841, ... - Alois P. Heinz, Apr 30 2014
LINKS
Colin Defant, Python program
FORMULA
a(0) = 0, a(1) = 1, and for n > 1, a(n) = a(A241663(n)). - Antti Karttunen, Nov 05 2017
EXAMPLE
A241663(A241663(7))=0, so a(7)=0. A241663(A241663(A241663(29)))=1, so a(29)=1.
PROG
(Python) # The link above provides a Python program. Input m=4, as well as starting and ending values of n. The fourth string of numbers will be this sequence.
(Scheme, with memoization-macro definec)
(definec (A241666 n) (if (<= n 1) n (A241666 (A241663 n)))) ;; Antti Karttunen, Nov 05 2017
CROSSREFS
Sequence in context: A103588 A153638 A122415 * A324539 A324964 A285957
KEYWORD
nonn
AUTHOR
Colin Defant, Apr 26 2014
EXTENSIONS
Term a(0)=0 prepended and more terms added by Antti Karttunen, Nov 05 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 8 22:02 EDT 2024. Contains 373227 sequences. (Running on oeis4.)