OFFSET
1,2
LINKS
Iain Fox, Table of n, a(n) for n = 1..9000
FORMULA
a(1)=1; a(2)=3; a(n) = floor(Sum_{i=1..floor(n/2)} a(n - (2*i-1))/a(2*i-1)). - Iain Fox, Oct 19 2018
a(n) ~ c * d^n, where d = 1.32084589099698002679195399789776925593378276999586161625509416650335137419... and c = 0.76500378031110004583172254717466388647997642917290688057501304595... - Vaclav Kotesovec, Oct 22 2018
MATHEMATICA
a[1]:=1; a[2]:=3; a[n_]:=Floor[Sum[Mod[i, 2] a[n-i]/a[i], {i, n-1}]]; Table[a[n], {n, 1, 15}] (* Iain Fox, Oct 19 2018 *)
PROG
(PARI) first(n) = my(res=vector(n)); for(x=1, n, res[x]=if(x<3, [1, 3][x], floor(sum(i=1, x-1, (i%2)*res[x-i]/res[i])))); res \\ Iain Fox, Oct 19 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved