OFFSET
1,1
COMMENTS
798 = 2 * 3 * 7 * 19.
All terms are multiple of a(1) = 18.
For these numbers numerator(B_{n}) mod denominator(B_{n}) = 775.
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..1000
EXAMPLE
Bernoulli B_{18} is 43867/798, hence 18 is in the sequence.
MAPLE
with(numtheory): P:=proc(q, h) local n; for n from 2 by 2 to q do
if denom(bernoulli(n))=h then print(n); fi; od; end: P(10^6, 798);
MATHEMATICA
Select[Range[0, 1000], Denominator[BernoulliB[#]] == 798 &] (* Robert Price, Apr 21 2016 *)
PROG
(PARI) lista(nn) = for(n=1, nn, if(denominator(bernfrac(n)) == 798, print1(n, ", "))); \\ Altug Alkan, Apr 22 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo P. Lava, Apr 21 2016
EXTENSIONS
More terms from Altug Alkan, Apr 22 2016
STATUS
approved