OFFSET
0,2
EXAMPLE
Take the sequence
1, 1/2, 1/5, 1/10, 1/17, 1/26, 1/37, 1/50, 1/65, 1/82, 1/101, 1/122, 1/145, 1/170, 1/197, 1/226, ...,
take partial sums:
1, 3/2, 17/10, 9/5, 158/85, 4193/2210, 157351/81770, 397466/204425, 400611/204425, 33054527/16762850, 3355270077/1693047850, ...,
take numerators:
1, 3, 17, 9, 158, 4193, 157351, 397466, 400611, 33054527, 3355270077, 102758999311, ...
MATHEMATICA
Accumulate[Table[1/(n^2+1), {n, 0, 20}]]//Numerator (* Harvey P. Dale, Jan 20 2020 *)
PROG
(PARI) for(n=0, 20, print1(numerator(sum(k=0, n, 1/(k^2+1))), ", ")) \\ Hugo Pfoertner, Apr 27 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved