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!)
A178305 a(0)=1, a(1)=a(2)=1 and a(3k)=a(k), a(3k+1) = a(3k+2) = 2a(k) for k >= 1. 0
0, 1, 1, 1, 2, 2, 1, 2, 2, 1, 2, 2, 2, 4, 4, 2, 4, 4, 1, 2, 2, 2, 4, 4, 2, 4, 4, 1, 2, 2, 2, 4, 4, 2, 4, 4, 2, 4, 4, 4, 8, 8, 4, 8, 8, 2, 4, 4, 4, 8, 8, 4, 8, 8, 1, 2, 2, 2, 4, 4, 2, 4, 4, 2, 4, 4, 4, 8, 8, 4, 8, 8, 2, 4, 4, 4, 8, 8, 4, 8, 8, 1, 2, 2, 2, 4, 4, 2, 4, 4, 2, 4, 4, 4, 8, 8, 4, 8, 8, 2, 4, 4, 4, 8, 8 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
LINKS
MATHEMATICA
a[0] = 0; a[1] = 1; a[2] = 1;
a[n_] := a[n] = If[Mod[n, 3] == 0, a[Floor[n/3]], If[Mod[n, 3] == 1, a[Floor[(n - 1)/3]] + a[Floor[(n + 1)/3]], a[Floor[(n - 2)/3]] + a[Floor[n/3]]]];
Table[a[n], {n, 0, 200}]
CROSSREFS
Sequence in context: A025126 A129706 A160384 * A338621 A024327 A073044
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Definition simplified, Mma notation removed - The Assoc. Eds. of the OEIS, Jul 20 2010
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 17:05 EDT 2024. Contains 372198 sequences. (Running on oeis4.)