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

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A328354 a(n)*S is the sum of all positive integers whose decimal expansion is up to n digits and uses seven distinct nonzero digits d1,d2,d3,d4,d5,d6,d7 such that d1+d2+d3+d4+d5+d6+d7=S. 8
 0, 1, 78, 5517, 386590, 27064101, 1894506678, 132615604717, 9283093290990, 649816537094901, 45487157643722278, 3184101035390113917, 222887072479614855390, 15602095073589188045701, 1092146655151356200377878, 76450265860595725286703117, 5351518610241706308890979790, 374606302716919480394120916501 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,3 COMMENTS This sequence is the building block for the calculation of the sums of positive integers whose decimal notation uses seven distinct, nonzero digits: see the attached pdf document. LINKS Pierre-Alain Sallard, Table of n, a(n) for n = 0..50 Pierre-Alain Sallard, Integers sequences A328348 and A328350 to A328356 Index entries for linear recurrences with constant coefficients, signature (78,-567,490). FORMULA a(n) = (60*70^n-69*7^n+9) / 3726. a(n) = 71*a(n-1) - 70*a(n-2) + 7^(n-1) for n > 1. G.f.: x / (1 - 78*x + 567*x^2 - 490*x^3). a(n) = 78*a(n-1) - 567*a(n-2) + 490*a(n-3) for n > 2. EXAMPLE For n=2, the sum of all positive integers whose decimal notation is made of, let's say, the 3,4,5,6,7,8 and 9 digits with at most n=2 such digits, i.e., the sum 3+4+5+6+7+8+9+33+34+35+36+37+38+39+43+44+45+46+47+48+49+53+54+55+56+57+58+59+63+64+65+66+67+68+69+73+74+75+76+78+79+83+84+85+86+87+88+89+93+94+95+96+97+98+99, is equal to a(2)*(3+4+5+6+7+8+9) = 78*42 = 3276. PROG (Python) [(60*70**n-69*7**n+9)//3726 for n in range(20)] (PARI) concat(0, Vec(x / ((1 - x)*(1 - 7*x)*(1 - 70*x)) + O(x^17))) \\ Colin Barker, Dec 06 2019 CROSSREFS Cf. A328348, A328350, A328351, A328352, A328353, A328355, A328356. Sequence in context: A194568 A276177 A093278 * A268023 A268016 A077694 Adjacent sequences: A328351 A328352 A328353 * A328355 A328356 A328357 KEYWORD nonn,base,easy AUTHOR Pierre-Alain Sallard, Nov 26 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.

Last modified February 2 18:03 EST 2023. Contains 360023 sequences. (Running on oeis4.)