A092132 Indices k of Bernoulli numbers B(k) whose numerators are primes.
10, 12, 14, 16, 18, 36, 42
Offset: 1
Links
- Eric Weisstein's World of Mathematics, Bernoulli Number
- Eric Weisstein's World of Mathematics, Integer Sequence Primes
Crossrefs
Cf. A092133.
Programs
-
Mathematica
Reap[For[n = 1, n <= 1000, n++, If[ PrimeQ[ Numerator[ BernoulliB[n]]], Print[n]; Sow[n]]]][[2, 1]] (* Jean-François Alcover, Oct 31 2012 *) Select[Range[50],PrimeQ[Numerator[BernoulliB[#]]]&] (* Harvey P. Dale, Sep 30 2019 *)
Comments