OFFSET
1,1
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..4096
FORMULA
EXAMPLE
For n = 6, the arithmetic progressions found in its divisor set {1, 2, 3, 6} are: {1, 2}, {1, 3}, {2, 3}, {2, 6}, {3, 6} and {1, 2, 3}. Five of these have length 2, and one is of length 3, thus a(6) = prime(2)^5 * prime(3) = 243*5 = 1215.
PROG
(PARI) A319354(n) = if(1==n, 2, my(d=divisors(n), m=1); for(i=1, (#d-1), for(j=(i+1), #d, my(c=1, k=d[j], s=(d[j]-d[i])); while(!(n%k), k+=s; c++); m *= prime(c))); (m));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Sep 21 2018
STATUS
approved