login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A136681 Numbers k such that A058313(k) is prime. 8
3, 4, 5, 6, 9, 10, 13, 16, 17, 18, 37, 43, 58, 121, 124, 126, 137, 203, 247, 283, 285, 286, 289, 317, 424, 508, 751, 790, 937, 958, 1066, 1097, 1151, 1166, 1194, 1199, 1235, 1414, 1418, 1460, 1498, 1573, 2090, 2122, 2691, 2718, 3030, 3426, 3600, 3653, 3737 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
A058313(k) = Numerator of Sum_{j=1..k} (-1)^(j+1)/j.
LINKS
Eric Weisstein's World of Mathematics, Harmonic Number
MATHEMATICA
Do[ f=Numerator[ Sum[ (-1)^(k+1)*1/k, {k, 1, n} ] ]; If[ PrimeQ[f], Print[ {n, f} ] ], {n, 1, 317} ]
PROG
(PARI) isok(n) = isprime(numerator(sum(k=1, n, (-1)^(k+1)/k))); \\ Michel Marcus, Mar 14 2019
CROSSREFS
Sequence in context: A050414 A342469 A266322 * A206330 A104373 A047427
KEYWORD
nonn
AUTHOR
Alexander Adamchuk, Jan 16 2008
EXTENSIONS
a(25)-a(30) from James R. Buddenhagen, Sep 22 2015
a(31)-a(51) from Amiram Eldar, Mar 14 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 09:20 EDT 2024. Contains 371769 sequences. (Running on oeis4.)