|
|
A345351
|
|
Triangular numbers such that the sum of cubes of their digits is prime.
|
|
0
|
|
|
496, 946, 1378, 2485, 7381, 7750, 8128, 10011, 11935, 12880, 13366, 13861, 14365, 15931, 19900, 31375, 33670, 34453, 35245, 36046, 38503, 41905, 43660, 44551, 45451, 46360, 48205, 49141, 50086, 58996, 65341, 66430, 73153, 103285, 104653, 111628, 114481, 124750
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
The cubes of the digits of 496 are 64, 729, and 216. They sum up to a prime number 1009. Thus, 496 is in the sequence.
|
|
LINKS
|
|
|
MATHEMATICA
|
Select[Table[n (n + 1)/2, {n, 500}], PrimeQ[Total[IntegerDigits[#]^3]] &]
|
|
PROG
|
(Python)
from sympy import isprime
def A055012(n): return sum(int(d)**3 for d in str(n))
def ok(tri): return isprime(A055012(tri))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,less
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|