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!)
A373096 a(n) = a([n/9]) + a([n/27]) + a([n/81]) + ..., where a(0) = 0, a(1) = 1, and [ ] = floor(). 2
0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2, 2, 2, 2, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,82
COMMENTS
Every term is a Fibonacci number, and every positive Fibonacci number occurs.
LINKS
FORMULA
Following the first 3^2 terms (all zeros and ones): 3^2 ones, 3^2 zeros, 3^3 ones, 3^3 zeros, 3^4 twos, 3^4 zeros, 3^5 threes, 3^5 zeros, 3^6 fives, 3^6 zeros, etc.
MAPLE
A373096 := proc(n)
option remember;
if n <=1 then
n;
else
add( procname(floor(n/3^k)), k=2..n) ;
end if;
end proc:
seq(A373096(n), n=0..100) ; # R. J. Mathar, Jun 07 2024
MATHEMATICA
a[0] = 0; a[1] = 1;
a[n_] := a[n] = Sum[a[Floor[n/3^k]], {k, 2, n}]
Table[a[n], {n, 0, 570}]
PROG
(PARI) a(n) = if (n<=1, n, sum(k=2, n, a(n\3^k))); \\ Michel Marcus, Jun 01 2024
CROSSREFS
Sequence in context: A114294 A371929 A242050 * A037869 A037868 A173069
KEYWORD
nonn
AUTHOR
Clark Kimberling, May 31 2024
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 26 06:40 EDT 2024. Contains 373715 sequences. (Running on oeis4.)