OFFSET
1,1
COMMENTS
Generalized harmonic numbers are defined as H(m,k) = Sum_{j=1..m} 1/j^k. Alternating generalized harmonic numbers are defined as H'(m,k) = Sum_{j=1..m} (-1)^(j+1)/j^k.
Sequence contains geometric progressions of the form (p-1)*p^k for k > 0 and some prime p > 5. Note the factorization of initial terms of {a(n)} = {6*7, 10*11, 12*13, 16*17, 6*7^2, 18*19, 22*23, 28*29, 30*31, 10*11*2, 36*37, 40*41, 42*43, 12*13^2, 6*7^3, ...}. See more details in Comments at A128672 and A125581.
LINKS
Eric Weisstein's World of Mathematics, Harmonic Number
MATHEMATICA
k=4; f=0; g=0; Do[ f=f+1/n^k; g=g+(-1)^(n+1)*1/n^k; kf=Denominator[f]; kg=Denominator[g]; If[ !IntegerQ[kf/n^k] && !IntegerQ[kg/n^k], Print[n] ], {n, 1, 2000} ]
CROSSREFS
KEYWORD
nonn
AUTHOR
Alexander Adamchuk, Mar 20 2007
EXTENSIONS
Edited and extended by Max Alekseyev, May 09 2010
STATUS
approved