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!)
A350126 a(n) = (a(a(n-1)) mod 2) + a(n-2) with a(0) = 0 and a(1) = 1. 1
0, 1, 1, 2, 2, 3, 2, 4, 2, 5, 3, 5, 4, 5, 5, 6, 5, 7, 5, 8, 5, 9, 6, 9, 7, 9, 8, 9, 9, 10, 10, 11, 11, 12, 11, 13, 12, 13, 13, 14, 14, 15, 14, 16, 15, 16, 16, 17, 17, 18, 18, 19, 18, 20, 19, 20, 20, 21, 21, 22, 21, 23, 22, 23, 23, 24, 24, 25, 25, 26, 25, 27 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
It appears that lim_{n->infinity} a(n)/n = 0.33960...
A similar formula is conjectured for A156253: (a(a(n-1)) mod 2) + a(n-2) + 1.
LINKS
MATHEMATICA
a[0] = 0;
a[1] = 1;
a[n_] := a[n] = Mod[a[a[n - 1]], 2] + a[n - 2]
Array[a, 100, 0]
PROG
(Python)
a = [0, 1]
[a.append(a[a[n-1]]%2 + a[n-2]) for n in range(2, 72)]
print(a) # Michael S. Branicky, Dec 15 2021
CROSSREFS
Cf. A156253.
Sequence in context: A129294 A363719 A363723 * A323914 A350068 A300230
KEYWORD
nonn
AUTHOR
Jon Maiga, Dec 15 2021
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 May 2 09:21 EDT 2024. Contains 372179 sequences. (Running on oeis4.)