OFFSET
2,1
COMMENTS
LINKS
T. D. Noe, Table of n, a(n) for n = 2..1000
David W. Boyd, A p-adic study of the partial sums of the harmonic series, Experimental Math., Vol. 3 (1994), No. 4, 287-302. [WARNING: Table 2 contains miscalculations for p=19, 47, 59, ... - Max Alekseyev, Feb 10 2016]
A. Eswarathasan and E. Levine, p-integral harmonic sums, Discrete Math. 91 (1991), 249-257.
MATHEMATICA
A072984[n_] := Module[{p, k, sum},
p = Prime[n]; k = 1; sum = 1/k;
While[! Divisible[Numerator[sum], p],
k++; sum += 1/k];
Return[k]];
Table[A072984[n], {n, 2, 61}] (* Robert Price, May 01 2019 *)
PROG
(PARI) a(n)=if(n<0, 0, s=1; while(numerator(sum(k=1, s, 1/k))%prime(n)>0, s++); s)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, Aug 21 2002
STATUS
approved