OFFSET
1,3
LINKS
Bruno Berselli, Table of n, a(n) for n = 1..1001
Robert Baillie and Thomas Schmelzer, Summing Kempner's Curious (Slowly-Convergent) Series, Mathematica Notebook kempnerSums.nb, Wolfram Library Archive, 2008.
Eric Weisstein's World of Mathematics, Smarandache Sequences.
FORMULA
Sum_{n>=2} 1/a(n) = 2.105050135115910443669713125834050962799269137280589957713644901011872709688... (calculated using Baillie and Schmelzer's kempnerSums.nb, see Links). - Amiram Eldar, Feb 15 2024
MATHEMATICA
Union[FromDigits/@Flatten[With[{l={0, 1, 4, 9}}, Table[Tuples[l, {i}], {i, 3}]], 1]] (* Harvey P. Dale, Dec 19 2010 *)
Select[Range[0, 999], Intersection[{2, 3, 5, 6, 7, 8}, Union[IntegerDigits[#]]] == {} &] (* T. D. Noe, Dec 20 2010 *)
PROG
(Magma) [n: n in [0..1000] | forall{d: d in Intseq(n) | d in [0, 1, 4, 9]}]; // Bruno Berselli, Jan 10 2013
(PARI) is(n)=#setintersect(Set(digits(n)), [2, 3, 5, 6, 7, 8])==0 \\ Charles R Greathouse IV, Feb 11 2017
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Offset corrected by Amiram Eldar, Feb 15 2024
STATUS
approved