[go: up one dir, main page]

login
A069958
(Sum of digits of n)^3 - (sum of digits^3 of n).
0
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 18, 36, 60, 90, 126, 168, 216, 270, 0, 18, 48, 90, 144, 210, 288, 378, 480, 594, 0, 36, 90, 162, 252, 360, 486, 630, 792, 972, 0, 60, 144, 252, 384, 540, 720, 924, 1152, 1404, 0, 90, 210, 360, 540, 750, 990, 1260, 1560, 1890, 0
OFFSET
0,12
COMMENTS
a(n) = 0 iff n is a single-digit number or is a power of ten times a single-digit number.
FORMULA
a(n) = A007953(n)^3 - A055012(n). - Michel Marcus, Nov 01 2014
MATHEMATICA
f[n_] := Plus @@ IntegerDigits[n]^3 - Plus @@ (IntegerDigits[n]^3); Table[ f[n], {n, 0, 100}]
CROSSREFS
Cf. A007953 (sum of digits), A055012 (sum of cubes of digits).
Sequence in context: A328586 A172522 A152539 * A028896 A295026 A034857
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved