A236748 Positive integers k such that k^2 divided by the digital sum of k is a square.
1, 4, 9, 10, 18, 22, 27, 36, 40, 45, 54, 63, 72, 81, 88, 90, 100, 108, 112, 117, 126, 130, 135, 144, 153, 162, 171, 180, 196, 202, 207, 216, 220, 225, 234, 243, 252, 261, 268, 270, 306, 310, 315, 324, 333, 342, 351, 360, 376, 400, 405, 414, 423, 432, 441
Offset: 1
Examples
153 is in the sequence because the digital sum of 153 is 9, and 153^2/9 = 2601 = 51^2.
Links
- Colin Barker, Table of n, a(n) for n = 1..1000
Programs
-
Magma
[n: n in [1..1500] | IsIntegral((n^2)/(&+Intseq(n))) and IsSquare((n^2)/(&+Intseq(n)))]; // Marius A. Burtea, Dec 21 2018
-
Maple
filter:= n -> issqr(n^2/convert(convert(n,base,10),`+`)): select(filter, [$1..10000]); # Robert Israel, Oct 30 2014
-
Mathematica
Select[Range[500],IntegerQ[Sqrt[#^2/Total[IntegerDigits[#]]]]&] (* Harvey P. Dale, Nov 19 2014 *)
-
PARI
s=[]; for(n=1, 600, d=sumdigits(n); if(n^2%d==0 && issquare(n^2\d), s=concat(s, n))); s
Comments