A122612 Duplicate of A078131.
8, 16, 24, 27, 32, 35, 40, 43, 48, 51, 54, 56, 59, 62, 64, 67, 70, 72, 75, 78, 80, 81, 83, 86, 88, 89, 91, 94, 96, 97, 99, 102, 104, 105, 107, 108, 110, 112, 113, 115, 116, 118, 120, 121, 123, 124, 125, 126, 128, 129, 131, 132, 133, 134, 135, 136, 137, 139, 140, 141
Offset: 1
Keywords
Programs
-
Python
from sympy import primerange, integer_nthroot as iroot def ok(n): cands = [p**3 for p in primerange(2, iroot(n, 3)[0]+1) if p**3 <= n] return n in cands or any(ok(n-c) for c in cands) print(list(filter(ok, range(142)))) # Michael S. Branicky, Aug 16 2021
Comments