OFFSET
1,2
COMMENTS
If k is a term with m > k, k | m^3 + 1 and m | k^3 + 1, then m is also a term, as with s = (m^3 + 1)/k we have s > m (in fact s > m^2), s | m^3 + 1 and m | s^3 + 1. In particular, the sequence is infinite.
Are there any terms divisible by 4?
LINKS
Robert Israel, Table of n, a(n) for n = 1..950
Mathematics StackExchange, The cubed plus 1 problem
EXAMPLE
a(4) = 5 is a term because both m = 9 and m = 14 work: 5 | 9^3 + 1 = 730 and 9 | 5^3 + 1 = 126, 5 | 14^3 + 1 = 2745 and 14 | 5^3 + 1 = 126.
MAPLE
filter:= proc(n) ormap(t -> t > n and t^3 + 1 mod n = 0, numtheory:-divisors(n^3+1)) end proc:
select(filter, [$1 .. 10000]);
PROG
(Python)
from itertools import count, islice
from sympy import divisors
def A384337_gen(startvalue=1): # generator of terms >= startvalue
for k in count(max(startvalue, 1)):
for m in divisors(k**3+1, generator=True):
if m>k and not (m**3+1)%k:
yield k
break
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, May 26 2025
STATUS
approved
