OFFSET
1,2
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
144 belongs to the sequence as sum of digits = 9 and the product of the digits = 16.
MATHEMATICA
pdsdQ[n_]:=Module[{idn=IntegerDigits[n]}, IntegerQ[Sqrt[Total[idn]]] && IntegerQ[Sqrt[Times@@idn]]]; Select[Range[1100], pdsdQ] (* Harvey P. Dale, Aug 20 2012 *)
PROG
(PARI) isok(k)={my(d=digits(k)); issquare(vecsum(d)) && issquare(vecprod(d))} \\ Harry J. Smith, Aug 07 2009
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Amarnath Murthy, Jun 28 2001
EXTENSIONS
Corrected and extended by Erich Friedman, Jul 02 2001
STATUS
approved