OFFSET
1,3
EXAMPLE
375*(3+7+5) = 5625 = 75^2. So, 375 is a member of this sequence.
MATHEMATICA
Select[Range[0, 1815], IntegerQ@ Sqrt[# Plus @@ IntegerDigits@ #] &] (* Michael De Vlieger, Apr 12 2015 *)
PROG
(Python)
def DS(n):
s = 0
for i in str(n):
s += int(i)
return s
for n in range(10**3):
k = 0
while k**2 <= n*DS(n):
if k**2 == n*DS(n):
print(n, end=', ')
break
else:
k += 1
# Edited by Derek Orr Apr 10 2015
(Magma) [n: n in [0..1000] | IsSquare(n*(&+Intseq(n)))]; // Vincenzo Librandi, Sep 20 2013
(PARI) for(n=0, 2000, s=sumdigits(n); if(issquare(n*s), print1(n, ", "))) \\ Derek Orr, Apr 10 2015
(Sage) [x for x in [0..2000] if is_square(x*sum(Integer(x).digits(base=10)))] # Bruno Berselli, May 25 2015
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Derek Orr, Sep 19 2013
EXTENSIONS
More terms from Derek Orr, Apr 10 2015
STATUS
approved