OFFSET
1,1
COMMENTS
LINKS
Jean-Marc Rebert, Table of n, a(n) for n = 1..3366
EXAMPLE
k = 4 is a term, since 4 is zeroless, the sum of the digits of 4 is 4, the product of the digits of 4 is 4 and the root 2 of x^2 - 4x + 4 is an integer.
MAPLE
isA355608 := proc(n)
local dgs, p, s ;
dgs := convert(n, base, 10) ;
p := mul(d, d=dgs) ;
s := add(d, d=dgs) ;
if p <> 0 then
-s/2+sqrt(s^2/4-p) ;
if type(simplify(%), integer) then
-s/2-sqrt(s^2/4-p) ;
if type(simplify(%), integer) then
true ;
else
false ;
end if;
else
false ;
end if;
else
false ;
end if ;
end proc:
for n from 1 to 180 do
if isA355608(n) then
printf("%d, ", n) ;
end if;
end do: # R. J. Mathar, Jan 24 2023
PROG
(PARI) is(n)=my(v=digits(n), c=vecprod(v)); c&& issquare(vecsum(v)^2-4*c)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Jean-Marc Rebert, Jul 09 2022
STATUS
approved