cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A232897 Number of nonnegative integers not exceeding n which have no decimal digits occurring in n.

This page as a plain text file.
%I A232897 #44 Apr 21 2025 13:23:15
%S A232897 0,1,2,3,4,5,6,7,8,9,8,9,8,8,8,8,8,8,8,8,16,8,18,16,16,16,16,16,16,16,
%T A232897 24,16,16,27,24,24,24,24,24,24,32,24,24,24,36,32,32,32,32,32,40,32,32,
%U A232897 32,32,45,40,40,40,40,48,40,40,40,40,40,54,48,48,48,56
%N A232897 Number of nonnegative integers not exceeding n which have no decimal digits occurring in n.
%C A232897 A "digit analog" of Euler function phi(n).
%C A232897 n = 123456789 is the smallest n>1 for which a(n)=1; n = 1023456789 is the smallest n>0 for which a(n) = 0. - _Peter J. C. Moses_, Dec 02 2013
%C A232897 If n > 0, a(n) = 0 if and only if n is in A171102; consequently a(n) = 0 for almost all n. - _Charles R Greathouse IV_, Dec 02 2013
%C A232897 Indeed, for any k, there exists N = N(k), such that all numbers >= N contain at least k digits. The "part" of them which do not contain, say, digit "1",<= (0.9)^k, so the "part" of them which do not contain at least one digit <= 10*(0.9)^k. This does not exceed any epsilon>0 for a choice of sufficiently large k=k(epsilon). Thus almost all positive numbers are pandigital (in the sense of A171102). - _Vladimir Shevelev_, Dec 03 2013
%H A232897 Charles R Greathouse IV, <a href="/A232897/b232897.txt">Table of n, a(n) for n = 0..10000</a>
%o A232897 (PARI) a(n)=if(n<9,return(n)); my(d=Set(digits(n))); sum(k=1,n-1, #setintersect(d, Set(digits(k)))==0)+(d[1]>0) \\ _Charles R Greathouse IV_, Dec 02 2013
%K A232897 nonn,base
%O A232897 0,3
%A A232897 _Vladimir Shevelev_, Dec 02 2013
%E A232897 More terms from _Peter J. C. Moses_, Dec 02 2013