OFFSET
1,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..5000
EXAMPLE
14_10 = 20_7, 16_10 = 22_10, 17_10 = 23_7.
14 in base 7 is 20, which contains no 1s, so 14 is in the sequence.
15 in base 7 is 21, which contains one 1, so 15 is not in the sequence.
16 in base 7 is 22, so 16 is in the sequence.
MATHEMATICA
Select[Range[0, 200], FreeQ[IntegerDigits[#, 7], 1] &] (* Seidov *)
Select[Range[0, 139], DigitCount[#, 7, 1] == 0 &] (* Alonso del Arte, Oct 26 2014 *)
PROG
(PARI) fromdigits(v, b=10)=subst(Pol(v), 'x, b) \\ needed for gp < 2.63 or so
a(n)=a(n)=fromdigits(apply(k->if(k, k+1, 0), digits(n, 6)), 7) \\ Charles R Greathouse IV, Oct 30 2014
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Zak Seidov, Oct 21 2014
STATUS
approved