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-6 of 6 results.

A156071 Concatenation chain arising in A156069.

Original entry on oeis.org

3, 38, 381, 3816, 38165, 381654, 3816547, 38165472, 381654729
Offset: 1

Views

Author

Keywords

Comments

a(9) is a zeroless pandigital number in base 10, with 9 digits such that every k-digit substring ( 1 <= k <= 9 ) taken from the left, is divisible by k (see A163574). - Michel Marcus, Dec 01 2013

References

  • Matt Parker, Things to make and do in the fourth dimension, 2015, pages 7-9.

Crossrefs

A156069 a(n) = A156071(n)/n.

Original entry on oeis.org

3, 19, 127, 954, 7633, 63609, 545221, 4770684, 42406081
Offset: 1

Views

Author

Keywords

Crossrefs

Extensions

New name from Michel Marcus, Dec 01 2013

A305714 Number of finite sequences of positive integers of length n that are polydivisible and strictly pandigital.

Original entry on oeis.org

1, 1, 1, 2, 0, 0, 2, 0, 1, 1, 1
Offset: 0

Views

Author

Gus Wiseman, Jun 08 2018

Keywords

Comments

A sequence q of length k is strictly pandigital if it is a permutation of {1,2,...,k}. It is polydivisible if Sum_{i = 1...m} 10^(m - i) * q_i is a multiple of m for all 1 <= m <= k.

Examples

			Sequence of sets of n-digit numbers that are weakly polydivisible and strictly pandigital is (with A = 10):
  {0}
  {1}
  {12}
  {123,321}
  {}
  {}
  {123654,321654}
  {}
  {38165472}
  {381654729}
  {381654729A}
		

Crossrefs

A305715 Irregular triangle whose rows are all finite sequences of positive integers that are polydivisible and strictly pandigital.

Original entry on oeis.org

1, 1, 2, 1, 2, 3, 3, 2, 1, 1, 2, 3, 6, 5, 4, 3, 2, 1, 6, 5, 4, 3, 8, 1, 6, 5, 4, 7, 2, 3, 8, 1, 6, 5, 4, 7, 2, 9, 3, 8, 1, 6, 5, 4, 7, 2, 9, 10
Offset: 1

Views

Author

Gus Wiseman, Jun 08 2018

Keywords

Comments

A positive integer sequence q of length k is strictly pandigital if it is a permutation of {1,2,...,k}. It is polydivisible if Sum_{i = 1...m} 10^(m - i) * q_i is a multiple of m for all 1 <= m <= k.

Examples

			Triangle is:
  {1}
  {1,2}
  {1,2,3}
  {3,2,1}
  {1,2,3,6,5,4}
  {3,2,1,6,5,4}
  {3,8,1,6,5,4,7,2}
  {3,8,1,6,5,4,7,2,9}
  {3,8,1,6,5,4,7,2,9,10}
		

References

  • Matt Parker, Things to make and do in the fourth dimension, 2015, pages 7-9.

Crossrefs

Programs

  • Mathematica
    polyQ[q_]:=And@@Table[Divisible[FromDigits[Take[q,k]],k],{k,Length[q]}];
    Flatten[Table[Select[Permutations[Range[n]],polyQ],{n,8}]]

A235133 Numbers whose (decimal) digits are a permutation of 1...n for some n, such that for all k in {1,...,n} the first k digits form a number divisible by k, when considered as representation in base n+1.

Original entry on oeis.org

1, 123, 321, 14325, 54321, 3254167, 5234761, 5674321, 381654729
Offset: 1

Views

Author

M. F. Hasler, Jan 03 2014

Keywords

Comments

See sequence A163574 for further discussion, in particular the proof that n must be odd, and that there is no further term with less than 13 digits. There are several options for representing the terms with 13 and more digits, e.g., continuing to write the number d[1]*10^(n-1)+...+d[n]*10^0, or concatenation of the "digits", written in base 10, even when they are larger than 9.
See sequence A235164 for the value of the terms when the n digits are read in base n+1, as it is also done in A163574.

Examples

			a(2) = 123 is in the sequence, because in base 4, 12[4]=6 is divisible by 2 and 123[4] = 27 = A235164(2) is divisible by 3. The same is the case for 321, where 32[4]=14 is even and 321[4] = 57 = A235164(3) is divisible by 3.
For the 9-digit term 381654729, the initial digits are to be interpreted in base 10: 38, 318, ..., 381654729 are divisible by 2, 3, ..., 9, respectively.
		

Programs

  • PARI
    for(n=1,9,p=vector(n,i,(n+1)^(i-1));for(k=0,n!-1,d=numtoperm(n,k);for(j=2,n,sum(i=1,j,d[i]*p[j-i+1])%j &&next(2)); print1(Vec(d)*vector(n,i,10^(n-i))~", ")))

Formula

a(n) = concatenation of digits of x = A235164(n) when written in base b = A055642(x)+1 = (# digits of x)+1.

A235164 Numbers whose digits, when the number is written in base n+1, are a permutation of 1...n, and such that for all k in {1,...,n} the first k digits (still in base n+1) form a number divisible by k.

Original entry on oeis.org

1, 27, 57, 2285, 7465, 874615, 1391089, 1538257, 381654729, 559922224824157
Offset: 1

Views

Author

M. F. Hasler, Jan 04 2014

Keywords

Comments

See sequence A163574 (which lists, for each n, the smallest term with n digits) for further discussion, in particular the proof that n must be odd, and that there is no further term with less than 13 digits. See sequence A235133 for the version where the terms (up to 9 digits) are written down in base 10.

Examples

			The terms with 5 digits in base 6 are 2285 = 14325[6] and 7465 = 54321[6], since these numbers are divisible by 5, and 14[6] = 10, 143[6] = 63, 1432[6] = 380 are divisible by 2, 3 and 4, respectively, and the same is the case for 54[6] = 34, 543[6] = 207 and 5432[6] = 1244.
		

Programs

  • PARI
    for(n=1,9,p=vector(n,i,(n+1)^(i-1));for(k=0,n!-1,d=numtoperm(n,k);for(j=2,n,sum(i=1,j,d[i]*p[j-i+1])%j &&next(2)); print1(d*vector(n,i,(n+1)^(n-i))~",")))
    
  • Python
    def vgen(n,b):
        if n == 1:
            t = list(range(1,b))
            for i in range(1,b):
                u = list(t)
                u.remove(i)
                yield i, u
        else:
            for d, v in vgen(n-1,b):
                for g in v:
                    k = d*b+g
                    if not k % n:
                        u = list(v)
                        u.remove(g)
                        yield k, u
    A235164_list = [a for n in range(2,15,2) for a, b in vgen(n-1,n)] # Chai Wah Wu, Jun 07 2015

Extensions

a(10) from Chai Wah Wu, Jun 07 2015
Showing 1-6 of 6 results.