OFFSET
2,1
COMMENTS
If n is prime, then a(n) = n + 1. - Wesley Ivan Hurt, Apr 05 2014
If n is a composite squarefree number and a(n) divides n+1, then n is a Lucas-Carmichael number (A006972). - Daniel Suteu, Oct 02 2022
LINKS
Daniel Suteu, Table of n, a(n) for n = 2..10000
EXAMPLE
The prime factors of 6 are 2 and 3, which become 3 and 4 when respectively increased by 1, and lcm(3, 4) = 12. Therefore, a(6) = 12.
PROG
(PARI) a(n) = my(f=factor(n)); lcm(vector(#f~, k, f[k, 1]+1)); \\ Daniel Suteu, Oct 02 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Joseph L. Pe, Feb 18 2014
STATUS
approved