|
|
A358894
|
|
a(n) is the smallest centered n-gonal number with exactly n distinct prime factors.
|
|
3
|
|
|
|
OFFSET
|
3,1
|
|
LINKS
|
|
|
EXAMPLE
|
a(3) = 460, because 460 is a centered triangular number with 3 distinct prime factors {2, 5, 23} and this is the smallest such number.
|
|
PROG
|
(PARI) a(n) = if(n<3, return()); for(k=1, oo, my(t=((n*k*(k+1))/2+1)); if(omega(t) == n, return(t))); \\ Daniel Suteu, Dec 05 2022
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|