OFFSET
1,1
COMMENTS
Terms are multiples of 3. - Chai Wah Wu, Dec 06 2021
LINKS
David A. Corneth, Table of n, a(n) for n = 1..2137
Kevin Ryde, C Code
MATHEMATICA
PROG
(Python)
from math import comb, gcd
from itertools import count, islice
def A349929gen(): # generator of terms
for n in count(3, 3):
if 3*gcd(comb(n*(n*(n + 6) - 6) + 2, n**3-1), n**3) == n**3:
yield n
A349929_list = list(islice(A349929gen(), 20)) # Chai Wah Wu, Dec 06 2021
(PARI) is(n) = {if(n%3 != 0, return(0)); my(f = factor(n)); for(i = 1, #f~, c = val(n^3 + 6*n^2 - 6*n + 2, f[i, 1]) - val(n^3 - 1, f[i, 1]) - val(6*n^2 - 6*n + 3, f[i, 1]) - 3*f[i, 2]; if(f[i, 1] == 3, if(c != -1, return(0) ) , if(c < 0, return(0) ) ) ); 1 }
val(n, p) = my(r=0); while(n, r+=n\=p); r \\ David A. Corneth, Dec 06 2021
(C) See links.
CROSSREFS
KEYWORD
nonn
AUTHOR
Stefano Spezia, Dec 05 2021
EXTENSIONS
a(17)-a(29) from Amiram Eldar, Dec 05 2021
a(30)-a(45) from Hugo Pfoertner, Dec 06 2021
More terms from David A. Corneth, Dec 06 2021
STATUS
approved