OFFSET
1,4
COMMENTS
FORMULA
For n >= 1, a(n) = A034386(n) mod n.
EXAMPLE
n = 1; a(1) = 1 mod 1 = 0;
n = 2; a(2) = 2 mod 2 = 0;
n = 3; a(3) = 2*3 mod 3 = 0;
n = 4; a(4) = 2*3 mod 4 = 2;
n = 5; a(5) = 2*3*5 mod 5 = 0;
n = 6; a(6) = 2*3*5 mod 6 = 0;
and so on.
PROG
(PARI) a(n) = lcm(primes([2, n])) % n; \\ Michel Marcus, Jan 07 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Ctibor O. Zizka, Jan 04 2021
STATUS
approved