Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #15 Dec 22 2024 20:37:23
%S 10,98,940,8798,80140,709238,6096100,50950718,415060060,3305238278,
%T 25807024660,198131841038,1499550640780,11213044626518,82997777543620,
%U 609099122145758,4437879770746300,32138240678881958,231547934781860980,1661033550903240878
%N a(n) is the number of nonnegative integers k less than 10^n such that the decimal representation of k lacks at least one of digits 1,2, at least one of digits 3,4,5 and at least one of digits 6,7,8,9.
%H Colin Barker, <a href="/A125946/b125946.txt">Table of n, a(n) for n = 1..1000</a>
%H Milan Janjic, <a href="http://www.pmfbl.org/janjic/">Enumerative Formulas for Some Functions on Finite Sets</a>
%H <a href="/index/Rec#order_07">Index entries for linear recurrences with constant coefficients</a>, signature (28,-322,1960,-6769,13132,-13068,5040).
%F a(n) = 24*7^n-72*6^n+98*5^n-76*4^n+35*3^n-9*2^n+1.
%F G.f.: -2*x*(2520*x^6 -6042*x^5 +6043*x^4 -2783*x^3 +708*x^2 -91*x +5) / ((x -1)*(2*x -1)*(3*x -1)*(4*x -1)*(5*x -1)*(6*x -1)*(7*x -1)). - _Colin Barker_, Feb 23 2015
%p f:=n->24*7^n-72*6^n+98*5^n-76*4^n+35*3^n-9*2^n+1;
%t Table[24*7^n-72*6^n+98*5^n-76*4^n+35*3^n-9*2^n+1,{n, 20}] (* _James C. McMahon_, Dec 22 2024 *)
%o (PARI) vector(100, n, 24*7^n-72*6^n+98*5^n-76*4^n+35*3^n-9*2^n+1) \\ _Colin Barker_, Feb 23 2015
%Y Cf. A125630.
%K nonn,base,easy
%O 1,1
%A Aleksandar M. Janjic and _Milan Janjic_, Feb 04 2007