OFFSET
1,1
COMMENTS
Almost all integers are in this sequence: It has asymptotic density 1 since the percentage of n-digit numbers with no digit 7 tends to 0 as n -> oo. - M. F. Hasler, Oct 12 2020
Does not contain 114.
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
Darren Gerson, Buzz.
LoGirl, The game 887, Japanese TV program for junior high and primary school student, Jul 11 2016
Partygamecentral.com, Buzz [broken link]
TeachingTips, Academic Games, Buzz.
FORMULA
Integers n for which the coefficient of x^n is nonzero in x^7 / (1 - x^7) + Sum_{k>=0} (x^(7*10^k)*(1 - x^(10^k)) / ((1 - x)*(1 - x^(10^(k+1)))).
EXAMPLE
7 is the first term, both because it is a multiple of 7 and because it contains a 7. 14 is next, being a multiple of 7. 17 is the third term: it contains a 7.
MAPLE
isA092433 := proc(n)
if modp(n, 7) = 0 then
true;
else
convert(convert(n, base, 10), set) ;
if 7 in % then
true;
else
false;
end if;
end if;
end proc:
for n from 1 to 200 do
if isA092433(n) then
printf("%d, ", n);
end if;
end do: # R. J. Mathar, Jul 19 2016
MATHEMATICA
Select[Range[300], Mod[ #, 7] == 0 || MemberQ[IntegerDigits[ # ], 7] &]
PROG
(PARI) is(n) = n % 7 == 0 || setsearch(Set(digits(n)), 7) \\ David A. Corneth, Oct 01 2019, simplified by M. F. Hasler, Oct 12 2020
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Jim Ferry (jferry(AT)uiuc.edu), Mar 23 2004
STATUS
approved