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.

Showing 1-10 of 12 results. Next

A083987 a(n) = n-th partial concatenation of A051883 divided by n.

Original entry on oeis.org

1, 5, 34, 255, 2040, 17000, 145715, 1275007, 11333396, 102000564, 927277855, 85000470043, 784619723474, 7285754575116, 68000376034416, 637503525322650, 60000331795072942, 566669800286800008, 5368450739559157971, 510002820258120007246
Offset: 1

Views

Author

Amarnath Murthy, May 22 2003

Keywords

Crossrefs

Cf. A051883.

Extensions

Corrected and extended by Sean A. Irvine, Sep 25 2011

A144688 "Magic" numbers: all numbers from 0 to 9 are magic; a number >= 10 is magic if it is divisible by the number of its digits and the number obtained by deleting the final digit is also magic.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 102, 105, 108, 120, 123, 126, 129, 141, 144, 147, 162, 165, 168, 180
Offset: 1

Views

Author

N. J. A. Sloane, based on email from Roberto Bosch Cabrera, Feb 02 2009

Keywords

Comments

Roberto Bosch Cabrera finds that there are exactly 20457 terms. (Total corrected by Zak Seidov, Feb 08 2009.)
The 20457th and largest term is the 25-digit number 3608528850368400786036725. - Zak Seidov, Feb 08 2009
a(n) is also the number such that every k-digit substring ( k <= n ) taken from the left, is divisible by k. - Gaurav Kumar, Aug 28 2009
A probabilistic estimate for the number of terms with k digits for the corresponding sequence in base b is b^k/k!, giving an estimate of e^b total terms. For this sequence, the estimate is approximately 22026, compared to the actual value of 20457. - Franklin T. Adams-Watters, Jul 18 2012
Numbers such that their first digit is divisible by 1, their first two digits are divisible by 2, and so on. - Charles R Greathouse IV, May 21 2013
These numbers are also called polydivisible numbers, because so many of their digits are divisible. - Martin Renner, Mar 05 2016
The unique zeroless pandigital (A050289) term, also called penholodigital, is a(7286) = 381654729 (see Penguin reference); so, the unique pandigital term (A050278) is a(9778) = 3816547290. - Bernard Schott, Feb 07 2022

Examples

			102 has three digits, 102 is divisible by 3, and 10 is also magic, so 102 is a member.
		

References

  • Robert Bosch, Tale of a Problem Solver, Arista Publishing, Miami FL, 2016.
  • David Wells, The Penguin Dictionary of Curious and Interesting Numbers (Revised Edition), Penguin Books, 1997, entry 381654729, page 185.

Crossrefs

A subsequence of A098952.

Programs

  • Maple
    P1:={seq(i,i=1..9)}:
    for i from 2 to 25 do
      P||i:={}:
      for n from 1 to nops(P||(i-1)) do
        for j from 0 to 9 do
          if P||(i-1)[n]*10+j mod i = 0 then P||i:={op(P||i),P||(i-1)[n]*10+j}: fi:
        od:
      od:
    od:
    `union`({0},seq(P||i,i=1..25)); # Martin Renner, Mar 05 2016
  • Mathematica
    divQ[n_]:=Divisible[n,IntegerLength[n]];
    lessQ[n_]:=FromDigits[Most[IntegerDigits[n]]];
    pdQ[n_]:=If[Or[n<10,And[divQ[n],divQ[lessQ[n]]]],True];
    Select[Range[0,180],pdQ[#]&] (* Ivan N. Ianakiev, Aug 23 2016 *)
  • Python
    def agen(): # generator of terms
        yield 0
        magic, biggermagic, digits = list(range(1, 10)), [], 2
        while len(magic) > 0:
            yield from magic
            for i in magic:
                for d in range(10):
                    t = 10*i + d
                    if t%digits == 0:
                        biggermagic.append(t)
            magic, biggermagic, digits = biggermagic, [], digits+1
    print([an for an in agen()][:70]) # Michael S. Branicky, Feb 07 2022

A099552 a(n) is the smallest positive integer such that the concatenation of the first n terms is divisible by n.

Original entry on oeis.org

1, 2, 3, 2, 5, 2, 5, 6, 1, 10, 2, 12, 5, 14, 5, 6, 8, 10, 15, 20, 7, 6, 18, 24, 25, 6, 32, 32, 3, 10, 1, 12, 41, 34, 5, 6, 8, 46, 33, 20, 34, 36, 21, 24, 30, 36, 36, 48, 23, 50, 56, 44, 34, 42, 30, 48, 9, 26, 4, 60, 44, 34, 33, 60, 65, 28, 16, 32, 66, 20, 29, 44, 78, 48, 75, 52, 9, 8, 37
Offset: 1

Views

Author

David Wasserman, Oct 21 2004

Keywords

Crossrefs

Programs

  • Mathematica
    spi[{ctn_,n_,a_}]:=Module[{k=1},While[Mod[ctn*10^IntegerLength[k]+k,n+1] != 0,k++];{ctn*10^IntegerLength[k]+k,n+1,k}]; NestList[spi,{1,1,1},80][[All,3]] (* Harvey P. Dale, Nov 30 2022 *)
  • PARI
    num = 1; print(1); for (n = 2, 9, c = 10*num%n; d = n - c; print(d); num = 10*num + d); for (n = 10, 90, c = 10*num%n; d = n - c; if (d < 10, print(d); num = 10*num + d, c = 100*num%n; d = n - c; if (d < 10, d = d + n); print(d); num = 100*num + d));

A073893 a(10k) = 0 and if n is not a multiple of 10 then a(n) is the smallest positive integer such that the concatenation of the first n terms is a multiple of n.

Original entry on oeis.org

1, 2, 3, 2, 5, 2, 5, 6, 1, 0, 8, 4, 9, 4, 5, 6, 25, 2, 15, 0, 15, 10, 28, 16, 25, 16, 28, 16, 13, 0, 14, 4, 22, 36, 5, 16, 35, 14, 47, 0, 16, 8, 42, 28, 35, 18, 49, 44, 27, 0, 42, 4, 26, 6, 45, 52, 53, 38, 62, 0, 44, 50, 25, 28, 15, 32, 43, 72, 29, 0, 61, 44, 45, 8, 25, 56, 82, 84, 85, 0
Offset: 1

Views

Author

Amarnath Murthy, Aug 17 2002

Keywords

Comments

Note that the concatenation of the first 10k terms is not necessarily a multiple of 10k.

Crossrefs

Extensions

Edited and extended by David Wasserman, Oct 21 2004

A073894 a(0)=1; a(n) for n > 0 is the smallest number not used earlier such that the concatenation of a(0),...,a(n) is a multiple of n+1.

Original entry on oeis.org

1, 0, 2, 4, 5, 6, 9, 12, 15, 10, 11, 24, 25, 8, 30, 40, 41, 18, 28, 20, 27, 46, 31, 52, 50, 32, 38, 60, 61, 80, 55, 36, 44, 120, 45, 48, 78, 26, 64, 160, 93, 14, 23, 140, 95, 98, 21, 76, 51, 100, 56, 92, 84, 34, 85, 68, 3, 62, 115, 180, 81, 74, 88, 128, 75, 58, 72, 124, 134
Offset: 0

Views

Author

Amarnath Murthy, Aug 17 2002

Keywords

Comments

Does every nonnegative integer eventually appear?

Examples

			Concatenation of a(0),...,a(6) is 1024569, not used so far are 3, 7, 8, 10, 11, 12, ..., the smallest of these that appended to 1024569 gives a multiple of 8 is 12: 102456912 = 8*12807114, hence a(7) = 12.
		

Crossrefs

Extensions

Edited and extended by Klaus Brockhaus, Mar 28 2006

A082399 a(1) = 1; thereafter, a(n) is the smallest nonnegative number such that the number Sum_{i=1..n} a(i)*10^(n-i) is divisible by n.

Original entry on oeis.org

1, 0, 2, 0, 0, 0, 5, 6, 4, 0, 5, 10, 2, 2, 5, 6, 16, 8, 14, 0, 7, 18, 19, 2, 5, 10, 6, 0, 25, 20, 2, 20, 17, 12, 20, 28, 13, 4, 13, 30, 16, 20, 36, 4, 35, 28, 28, 16, 29, 10, 39, 14, 12, 4, 50, 20, 14, 24, 7, 50, 14, 54, 55, 18, 10, 44, 62, 52, 63, 50, 7, 18, 6, 62, 55, 54, 54, 54, 35, 10
Offset: 1

Views

Author

N. J. A. Sloane, Feb 08 2009

Keywords

Comments

Suggested by studying A144688. If all a(n) had turned out to be in the range 0 to 9 then this sequence would have produced a counterexample to the assertion that A144688 is finite.
The old entry with this A-number was a duplicate of A080825.

Examples

			After we have the first 11 terms, 1,0,2,0,0,0,5,6,4,0,5, the next number x must be chosen so that 102000564050 + x is divisible by 12; this implies that x = 10.
		

Crossrefs

See A051883 for another version. Cf. A144688.

Programs

  • Maple
    M:=80; a[1]:=1; N:=1;
    for n from 2 to M do
    N:=10*N; t2:=N mod n;
    if t2 = 0 then a[n]:=0; else a[n]:=n-t2; fi;
    N:=N+a[n]; od: [seq(a[n],n=1..M)];

A132187 a(n) pertains to numbers x such that, for any m, the number formed from the first m digits of x is congruent to n mod m; but no digit can be appended to maintain the condition. a(n) is the quantity of such numbers.

Original entry on oeis.org

294, 268, 284, 260, 264, 281, 261, 286, 267, 244, 292, 265, 286, 300, 260, 293, 297, 281, 274, 262, 240, 259, 277, 296, 306, 266, 280, 259, 263, 284, 265, 293, 287, 259, 287, 273, 270, 298, 245, 257, 286, 257, 292, 272, 264, 286, 287, 310, 294, 268, 257
Offset: 0

Views

Author

Philippe LALLOUET (philip.lallouet(AT)orange.fr), Nov 04 2007

Keywords

Comments

The smallest number for each n is A134595, the largest is A132185.

Crossrefs

Extensions

Edited by Don Reble, Nov 07 2007

A336399 a(1) = 1, a(n) is the smallest number such that the concatenation a(1)a(2)...a(n) is divisible by lcm(1..n).

Original entry on oeis.org

1, 0, 2, 0, 0, 0, 360, 0, 1680, 0, 35280, 0, 332640, 0, 0, 0, 8648640, 0, 306306000, 0, 0, 0, 232792560, 0, 0, 0, 26771144400, 0, 481880599200, 0, 41923612130400, 0, 0, 0, 0, 0, 5487335009956800, 0, 0, 0, 245774847024907200, 0, 8105227020364874400, 0, 0, 0, 452140231622516236800, 0, 3984485791173424336800, 0
Offset: 1

Views

Author

Eder Vanzei, Jul 20 2020

Keywords

Examples

			a(7) = 360 as the smallest positive integer k such that the concatenation a(1)a(2)..a(6)k is divisible by lcm(1..7) = 420. - _David A. Corneth_, Jul 21 2020
		

Crossrefs

Cf. A336401 (corresponding numbers), A003418 (LCM's).

Programs

  • Maple
    N:= 1: R:= 1: C:= 1:
    for n from 2 to 60 do
      N:= ilcm(N,n);
      for d from 1 do
        x:= -C*10^d mod N;
        if x = 0 then lx:= 1 else lx:= 1+ilog10(x) fi;
        if lx = d then
           R:= R,x;
           C:= C*10^d+x;
           break
        elif lx < d then
           k:= ceil((10^(d-1)-x)/N);
           x:= x + k*N;
           if x < 10^d then
             R:= R,x;
             C:= C*10^d+x;
             break
        fi fi
    od; od:
    R; # Robert Israel, Sep 16 2020
  • PARI
    a(n) = {if(n==1,return(1));for(n1 = 0, oo, ; k[n]=eval(concat(Str(k[n-1]), n1)); n2=0; for(n3 = 1, n, if(k[n] % n3 == 0, n2+=1; if(n2==n, return(k[n])))))};
    k = vector(10000);print1(k[1]=1,", ");for(j=1, 20, print1(a(j+1) - a(j)*10^(length(Str(a(j+1))) - length(Str(a(j)))), ", "))
    
  • PARI
    \\ See Corneth link. David A. Corneth, Jul 21 2020

Extensions

a(27)-a(50) from David A. Corneth, Jul 20 2020

A132185 a(n) is the largest number beginning with 1 such that, for any m, the number formed from the first m digits of a(n) is congruent to n mod m.

Original entry on oeis.org

144408645048225636603816, 1725676121534561296189, 188276429246387492222, 19838179232721317143537, 12764828245698443284086, 176903816597810123057, 18626438463030625206604, 19352559475935751347112, 16128296082816884008108
Offset: 0

Views

Author

Philippe LALLOUET (philip.lallouet(AT)orange.fr), Nov 04 2007

Keywords

Comments

Obviously, each such number has at least ten digits; thence one can extend with diminishing probability. But a(211131)=1715193991236363935195556991413939 has 34 digits!

Examples

			a(3) = 19838179232721317143537 because 19 == 3 mod 2, 198 == 3 mod 3, 1983 == 3 mod 4,..., 19838179232721317143537 == 3 mod 23; but no additional digit makes a 3 mod 24 number.
		

Crossrefs

Extensions

Edited by Don Reble, Nov 07 2007

A134595 a(n) is the smallest number such that, for any m, the number formed from the first m digits of a(n) is congruent to n mod m; but no digit can be appended to maintain the condition.

Original entry on oeis.org

1080548820, 1121114531, 1010249842, 1115859543, 1064928464, 1105018975, 1026605496, 1303211957, 1012880068, 1113933789, 1002529000, 1139156391, 1080784472, 1121350183, 1010485494, 1111055105, 1000603246, 1101719337
Offset: 0

Views

Author

Philippe LALLOUET (philip.lallouet(AT)orange.fr), Nov 04 2007

Keywords

Comments

Obviously, each such number has at least ten digits. Smaller numbers (like 1020005640 for 0 mod m) can be extended (to 10200056405).

Examples

			a(1) = 1121114531 because 11 == 1 mod 2, 112 == 1 mod 3, 1211 == 1 mod 4, ..., 1121114531 == 1 mod 10 but there is no digit such that 1121114531d == 1 mod 11. (10 is not a digit.)
		

Crossrefs

Extensions

Edited by Don Reble, Nov 07 2007
Showing 1-10 of 12 results. Next