A225722 Numbers divisible by their last digit cubed, excluding those whose last digit is 1.
32, 64, 72, 112, 125, 152, 192, 216, 232, 243, 272, 312, 352, 375, 384, 392, 432, 472, 512, 513, 552, 592, 625, 632, 672, 704, 712, 729, 752, 783, 792, 832, 872, 875, 912, 952, 992, 1024, 1032, 1053, 1072, 1112, 1125, 1152, 1192, 1232, 1272, 1296, 1312, 1323
Offset: 1
Examples
a(5) = 125 is an example because its last digit is 5, and 5^3 = 125, and 125 is divisible by 125.
Links
- Christian N. K. Anderson, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
Mathematica
dldcQ[n_]:=Module[{ld=Last[IntegerDigits[n]]},ld>1&&Divisible[n,ld^3]]; Select[Range[1500],dldcQ] (* Harvey P. Dale, Aug 15 2014 *)
-
R
which(sapply(1:1000,function(x) x%%10>1 & (v=x/(x%%10)^3)==as.integer(v) ))
Comments