OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
133 is in the sequence because: (1) it is a lucky number, (2) the sum of its digits 1+3+3=7 is a lucky number, (3) the product of its digits 1*3*3=9 is a lucky number.
MATHEMATICA
lst = Range[1, 19172, 2]; i = 2; While[ i <= (len = Length@lst) && (k = lst[[i]]) <= len, lst = Drop[lst, {k, len, k}]; i++ ]; Select[lst, MemberQ[lst, Plus @@ IntegerDigits@# ] && MemberQ[lst, Times @@ IntegerDigits@# ] &] (* Robert G. Wilson v *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), May 07 2006
EXTENSIONS
Corrected and extended by Adam Panagos (adam.panagos(AT)gmail.com) and Robert G. Wilson v, May 10 2006
STATUS
approved