OFFSET
1,2
FORMULA
a(n) ~ A052382(n) ~ n^k, where k = log(10)/log(9) = 1.04795.... - Charles R Greathouse IV, Jul 07 2022
EXAMPLE
k = 111 is a term, since the sum of the digits of 111 is 3, the product of the digits of 111 is 1 and the roots (3 - sqrt(5))/2 and (3 + sqrt(5))/2 of x^2 - 3*x + 1 are not integers.
MATHEMATICA
kmax=171; kdig:=IntegerDigits[k]; s:=Total[kdig]; p:=Product[Part[kdig, i], {i, Length[kdig]}]; a:={}; For[k=0, k<=kmax, k++, If[Not[Element[x/.Solve[x^2-s*x+p==0, x], Integers]], AppendTo[a, k]]]; a
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Stefano Spezia and Jean-Marc Rebert, Jul 06 2022
STATUS
approved