OFFSET
1,1
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Bernd C. Kellner and Jonathan Sondow, On Carmichael and polygonal numbers, Bernoulli polynomials, and sums of base-p digits, Integers 21 (2021), #A52, 21 pp.; arXiv:1902.10672 [math.NT], 2019.
Bernd C. Kellner, On primary Carmichael numbers, Integers 22 (2022), #A38, 39 pp.; arXiv:1902.11283 [math.NT], 2019.
Wikipedia, Polygonal number
FORMULA
EXAMPLE
If m = A002997(1) = 561 = 3*11*17, then p = 17, so a(1) = 2+2*((561/17)-1)/(17-1) = 6.
MATHEMATICA
T = Cases[Range[1, 10000000, 2], n_ /; Mod[n, CarmichaelLambda[n]] == 1 && ! PrimeQ[n]];
GPF[n_] := Last[Select[Divisors[n], PrimeQ]];
Table[2 + 2*(T[[i]]/GPF[T[[i]]] - 1)/(GPF[T[[i]]] - 1), {i, Length[T]}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Bernd C. Kellner and Jonathan Sondow, Mar 24 2019
STATUS
approved