OFFSET
1,1
LINKS
Samuel Harkness, Table of n, a(n) for n = 1..175
EXAMPLE
a(3) = 11010 because the first 3 primes {2, 3, 5} divide 11010 and the next 3 primes {7, 11, 13} divide 11011.
MATHEMATICA
K = {}; For[n = 1, n <= 13, n++, R = Prime[Range[2 n]];
A = R[[1 ;; n]]; t = Times @@ A; B = R[[n + 1 ;; 2 n]]; p = t + 1;
For[b = 1, b <= n, b++, While[Mod[p, Part[B, b]] != 0, p += t];
t *= Part[B, b]]; AppendTo[K, p - 1]]; Print[K]
PROG
(PARI) a(n)={my(p=primes(2*n)); lift(chinese(Mod(0, vecprod(p[1..n])), Mod(-1, vecprod(p[n+1..2*n]))))} \\ Andrew Howroyd, Feb 08 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Samuel Harkness, Feb 08 2023
STATUS
approved