OFFSET
1,4
LINKS
Vaclav Kotesovec, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Rogers-Ramanujan Continued Fraction
N. J. A. Sloane, Transforms
FORMULA
G.f.: 1 + Sum_{n>=1} a(n)*x^n/(1 - x^n) = (Sum_{n>=0} (-1)^n*x^(n*(n+1)) /Product_{k=1..n} (1 - x^k)) / (Sum_{n>=0} (-1)^n*x^(n^2)/Product_{k=1..n} (1 - x^k)).
Sum_{d|n} a(d) = A005169(n) for n > 0.
From Vaclav Kotesovec, Apr 30 2017: (Start)
a(n) ~ c * d^n, where
d = 1/A347901 = 1.735662824530347425658260749719668530254652847290392754609934...
c = 0.31236332459674145306627970724066492149823012868471473538681348971946...
(End)
EXAMPLE
G.f.: 1 + x/(1 - x) + x^3/(1 - x^3) + 2*x^4/(1 - x^4) + 4*x^5/(1 - x^5) + ... = 1/(1 - x/(1 - x^2/(1 - x^3/(1 - x^4/(1 - ...))))).
MATHEMATICA
nn = 42; f[x_] := 1 + Sum[a[n] x^n/(1 - x^n), {n, 1, nn}]; sol = SolveAlways[0 == Series[f[x] - 1/(1 + ContinuedFractionK[-x^n, 1, {n, 1, nn}]), {x, 0, nn}], x]; Table[a[n], {n, 1, nn}] /. sol // Flatten
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Apr 28 2017
STATUS
approved