OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
If 2*n - 1 is prime then a(n) is prime.
a(n) = gcd((2*n-1)*N(2*n-2), D(2*n-2)), with N(k)/D(k) = B(k) the k-th Bernoulli number.
MAPLE
MATHEMATICA
a[n_] := Module[{b = BernoulliB[2*n -2]}, (2* n - 1) * Denominator[b] / ((2 * n - 1) * Denominator[(2 * n - 1) * b])]; Array[a, 100] (* Amiram Eldar, Apr 26 2024 *)
PROG
(PARI) f(n) = n*denominator(n*bernfrac(n-1))/denominator(bernfrac(n-1)); \\ A326478
a(n) = (2*n-1)/f(2*n-1); \\ Michel Marcus, Jul 17 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Luschny, Jul 16 2019
STATUS
approved