login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A328289 a(n) is the number of positive numbers < n that have no digit in common with n. 2
0, 1, 2, 3, 4, 5, 6, 7, 8, 8, 8, 7, 7, 7, 7, 7, 7, 7, 7, 16, 7, 17, 15, 15, 15, 15, 15, 15, 15, 24, 15, 15, 26, 23, 23, 23, 23, 23, 23, 32, 23, 23, 23, 35, 31, 31, 31, 31, 31, 40, 31, 31, 31, 31, 44, 39, 39, 39, 39, 48, 39, 39, 39, 39, 39, 53, 47, 47, 47, 56 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
EXAMPLE
For n = 12, the accepted values < 12 are 3, 4, 5, 6, 7, 8, 9 so a(12) = 7.
PROG
(PARI) ok(a, b)=length(setintersect(Set(digits(a)), Set(digits(b))))==0;
count(n)={c=0; for(k=1, n-1, if(ok(k, n), c++)); c};
A328289(limit)=vector(limit, n, count(n));
CROSSREFS
Sequence in context: A355459 A110011 A138718 * A108922 A102670 A289411
KEYWORD
nonn,base
AUTHOR
Lars Blomberg, Oct 11 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 23:26 EDT 2024. Contains 371917 sequences. (Running on oeis4.)