|
|
A033498
|
|
a(n) = a(n-1)+ a(round(2*(n-1)/3)) +a(round((n-1)/3)) starting a(1)=1.
|
|
3
|
|
|
1, 3, 5, 9, 15, 23, 35, 53, 73, 101, 141, 185, 247, 329, 417, 533, 689, 853, 1061, 1331, 1613, 1977, 2429, 2899, 3485, 4227, 4989, 5915, 7049, 8211, 9643, 11357, 13111, 15229, 17799, 20413, 23497, 27167, 30899, 35373, 40609, 45927, 52171, 59549, 67015, 75643
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
MAPLE
|
|
|
MATHEMATICA
|
a[n_]:= a[n]= If[n<2, 1, a[n-1] +a[Round[2*(n-1)/3]] +a[Round[(n-1)/3]]];
|
|
PROG
|
(PARI) a(n) = if(n<2, 1, a(n-1)+a(round(2*(n-1)/3)) +a(round((n-1)/3)) );
(Magma) a:= func< n | n lt 2 select 1 else Self(n-1) + Self(Round(2*(n-1)/3)) + Self(Round((n-1)/3)) >;
(Sage)
@CachedFunction
def a(n):
if (n<2): return 1
else: return a(n-1) +a(round(2*(n-1)/3)) +a(round((n-1)/3))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|