OFFSET
1,1
MAPLE
isa := n -> abs(mods(n, 6)) = 1 and modp(numer(bernoulli(2*n)), n) <> 0:
select(isa, [$1..2255]); # Peter Luschny, Aug 02 2017
MATHEMATICA
Select[Range@9999, 0 != Mod[Numerator@BernoulliB[2 #], #] && MemberQ[{1, 5}, Mod[#, 6]] &]
PROG
(PARI) isok(n) = (((n % 6) == 1) || ((n % 6) == 5)) && (numerator(bernfrac(2*n)) % n); \\ Michel Marcus, Aug 02 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Bill Gosper, Aug 01 2017
STATUS
approved