A070987 Number of terms in simple continued fraction for sum(k=1,n,1/k^4).
1, 2, 8, 8, 9, 12, 22, 23, 27, 29, 33, 33, 49, 39, 48, 52, 58, 62, 65, 68, 73, 67, 75, 72, 80, 83, 87, 89, 100, 91, 93, 109, 113, 112, 101, 105, 107, 118, 123, 131, 118, 120, 123, 141, 151, 148, 157, 165, 157, 170, 180, 158, 187, 181, 181, 195, 187, 181, 194, 188
Offset: 1
Examples
The simple continued fraction for sum(k=1,10,1/k^4) is [1, 12, 5, 3, 1, 2, 10, 12, 1, 2, 4, 2, 2, 2, 1, 7, 11, 1, 1, 2, 5, 2, 2, 4, 3, 1, 1, 1, 2] which contains 29 terms, hence a(10)=29.
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Crossrefs
Cf. A055573.
Programs
-
Mathematica
Length[ContinuedFraction[#]]&/@Accumulate[1/Range[60]^4] (* Harvey P. Dale, Dec 20 2012 *)
-
PARI
for(n=1,100,print1(length(contfrac(sum(i=1,n,1/i^4))),","))
Formula
lim n ->infinity a(n)/n=C=3, 3....
Comments