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 27 results. Next

A007377 Numbers k such that the decimal expansion of 2^k contains no 0.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 15, 16, 18, 19, 24, 25, 27, 28, 31, 32, 33, 34, 35, 36, 37, 39, 49, 51, 67, 72, 76, 77, 81, 86
Offset: 1

Views

Author

Keywords

Comments

It is an open problem of long standing to show that 86 is the last term.
A027870(a(n)) = A224782(a(n)) = 0. - Reinhard Zumkeller, Apr 30 2013
See A030700 for the analog for 3^k, which seems to end with k=68. - M. F. Hasler, Mar 07 2014
Checked up to k = 10^10. - David Radcliffe, Aug 21 2022

Examples

			Here is 2^86, conjecturally the largest power of 2 not containing a 0: 77371252455336267181195264. - _N. J. A. Sloane_, Feb 10 2023
		

References

  • J. S. Madachy, Mathematics on Vacation, Scribner's, NY, 1966, p. 126.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Some similar sequences are listed in A035064.
Cf. also A031142.

Programs

  • Haskell
    import Data.List (elemIndices)
    a007377 n = a007377_list !! (n-1)
    a007377_list = elemIndices 0 a027870_list
    -- Reinhard Zumkeller, Apr 30 2013
    
  • Magma
    [ n: n in [0..50000] | not 0 in Intseq(2^n) ];  // Bruno Berselli, Jun 08 2011
    
  • Maple
    remove(t -> has(convert(2^t,base,10),0),[$0..1000]); # Robert Israel, Dec 29 2015
  • Mathematica
    Do[ If[ Union[ RealDigits[ 2^n ] [[1]]] [[1]] != 0, Print[ n ] ], {n, 1, 60000}]
    Select[Range@1000, First@Union@IntegerDigits[2^# ] != 0 &]
    Select[Range[0,100],DigitCount[2^#,10,0]==0&] (* Harvey P. Dale, Feb 06 2015 *)
  • PARI
    for(n=0,99,if(vecmin(eval(Vec(Str(2^n)))),print1(n", "))) \\ Charles R Greathouse IV, Jun 30 2011
    
  • Perl
    use bignum;
    for(0..99) {
      if((1<<$_) =~ /^[1-9]+$/) {
        print "$_, "
      }
    } # Charles R Greathouse IV, Jun 30 2011
    
  • Python
    def ok(n): return '0' not in str(2**n)
    print(list(filter(ok, range(10**4)))) # Michael S. Branicky, Aug 08 2021

Extensions

a(1) = 0 prepended by Reinhard Zumkeller, Apr 30 2013

A030700 Decimal expansion of 3^n contains no zeros (probably finite).

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 19, 23, 24, 26, 27, 28, 31, 34, 68
Offset: 1

Views

Author

Keywords

Comments

See A007377 for the analog for 2^n (final term seems to be 86), A008839 for 5^n (final term seems to be 58), and others listed in cross-references. - M. F. Hasler, Mar 07 2014
See A238939(n) = 3^a(n) for the actual powers. - M. F. Hasler, Mar 08 2014

Examples

			Here is 3^68, conjecturally the largest power of 3 that does not contain a zero: 278128389443693511257285776231761. - _N. J. A. Sloane_, Feb 10 2023
		

Crossrefs

For the zeroless numbers (powers x^n), see A238938, A238939, A238940, A195948, A238936, A195908, A195946, A195945, A195942, A195943, A103662.
For the corresponding exponents, see A007377, A030700 (this), A030701, A008839, A030702, A030703, A030704, A030705, A030706, A195944.
For other related sequences, see A052382, A027870, A102483, A103663.

Programs

Extensions

Initial term 0 added by Vincenzo Librandi, Oct 19 2012

A008839 Numbers k such that the decimal expansion of 5^k contains no zeros.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 17, 18, 30, 33, 58
Offset: 1

Views

Author

Keywords

Comments

Probably 58 is last term.
Searched for k up to 10^10. - David Radcliffe, Dec 27 2015

Examples

			Here is 5^58, conjecturally the largest power of 5 that does not contain a 0:
34694469519536141888238489627838134765625. - _N. J. A. Sloane_, Feb 10 2023, corrected by _Patrick De Geest_, Jun 09 2024
		

Crossrefs

Cf. A000351 (5^n).
For the zeroless numbers (powers x^n), see A238938, A238939, A238940, A195948, A238936, A195908, A195946, A195945, A195942, A195943, A103662.
For the corresponding exponents, see A007377, A008839, A030700, A030701, A008839, A030702, A030703, A030704, A030705, A030706, A195944.
For other related sequences, see A305925, A052382, A027870, A102483, A103663.

Programs

  • Magma
    [ n: n in [0..500] | not 0 in Intseq(5^n) ]; // Vincenzo Librandi Oct 19 2012
    
  • Mathematica
    Do[ If[ Union[ RealDigits[ 5^n ][[1]]] [[1]] != 0, Print[ n ]], {n, 0, 25000}]
  • PARI
    for(n=0,99,vecmin(digits(5^n))&& print1(n",")) \\ M. F. Hasler, Mar 07 2014

Extensions

Definition corrected and initial term 0 added by M. F. Hasler, Sep 25 2011
Further edits by M. F. Hasler, Mar 08 2014
Keyword:fini removed by Jianing Song, Jan 28 2023 as finiteness is only conjectured.

A030702 Decimal expansion of 6^n contains no zeros (probably finite).

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 12, 17, 24, 29, 44
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Magma
    [n: n in [0..500] | not 0 in Intseq(6^n)]; // Vincenzo Librandi, Mar 08 2014
  • Mathematica
    Select[Range[50],FreeQ[IntegerDigits[6^#],0]&] (* Harvey P. Dale, Feb 26 2017 *)
  • PARI
    for(n=0, 199, vecmin(digits(6^n))&& print1(n", ")) \\ M. F. Hasler, Mar 07 2014
    

Extensions

Offset corrected and initial 0 added by M. F. Hasler, Mar 07 2014

A030703 Decimal expansion of 7^n contains no zeros (probably finite).

Original entry on oeis.org

0, 1, 2, 3, 6, 7, 10, 11, 19, 35
Offset: 1

Views

Author

Keywords

Comments

No additional terms up to 20000. - Harvey P. Dale, Oct 02 2013

Crossrefs

Programs

  • Magma
    [n: n in [0..500] | not 0 in Intseq(7^n)]; // Vincenzo Librandi, Mar 08 2014
  • Mathematica
    Select[Range[0,100],DigitCount[7^#,10,0]==0&] (* Harvey P. Dale, Oct 02 2013 *)
  • PARI
    for( n=0, 9999, is_A052382(7^n) && print1(n, ", "))  \\ M. F. Hasler, Sep 25 2011
    

Formula

A030703 = A000420^(-1)(A052382) as a set, where f^(-1)(Y) = { x : f(x) in Y}.
A030703 = A000420^(-1) o A195908 as a function. - M. F. Hasler, Sep 25 2011

Extensions

Initial term 0 inserted by M. F. Hasler, Sep 25 2011

A195908 Powers of 7 which have no zero in their decimal expansion.

Original entry on oeis.org

1, 7, 49, 343, 117649, 823543, 282475249, 1977326743, 11398895185373143, 378818692265664781682717625943
Offset: 1

Views

Author

M. F. Hasler, Sep 25 2011

Keywords

Comments

Probably finite. Is 378818692265664781682717625943 the largest term?
No further terms up to 7^50,000, a number with 42,255 digits. - Harvey P. Dale, Jul 14 2022

Crossrefs

Programs

  • Magma
    [7^n: n in [0..3*10^4] | not 0 in Intseq(7^n)]; // Bruno Berselli, Sep 26 2011
  • Mathematica
    Select[7^Range[0,50],DigitCount[#,10,0]==0&] (* Harvey P. Dale, Jul 14 2022 *)
  • PARI
    for( n=1,9999, is_A052382(7^n) && print1(7^n,","))
    

Formula

a(n) = 7^A030703(n).
A000420 intersect A052382.

Extensions

Keyword:fini removed by Jianing Song, Jan 28 2023 as finiteness is only conjectured.

A195946 Powers of 11 which have no zero in their decimal expansion.

Original entry on oeis.org

1, 11, 121, 1331, 14641, 1771561, 19487171, 214358881, 2357947691, 3138428376721, 34522712143931, 379749833583241, 4177248169415651, 45949729863572161, 5559917313492231481, 4978518112499354698647829163838661251242411
Offset: 1

Views

Author

M. F. Hasler, Sep 25 2011

Keywords

Comments

Probably finite. Is 4978518112499354698647829163838661251242411 the largest term?

Crossrefs

For the zeroless numbers (powers x^n), see A195942, A195943, A238938, A238939, A238940, A195948, A238936, A195908, A195945.
For the corresponding exponents, see A007377, A008839, A030700, A030701, A030702, A030703, A030704, A030705, A030706, A195944.

Programs

  • Magma
    [11^n: n in [0..3*10^4] | not 0 in Intseq(11^n)]; // Bruno Berselli, Sep 26 2011
  • Mathematica
    Select[11^Range[0,50],DigitCount[#,10,0]==0&] (* Harvey P. Dale, Jan 27 2014 *)
  • PARI
    for( n=0,9999, is_A052382(11^n) && print1(11^n,","))
    

Formula

a(n) = 11^A030706(n).
A195946 = A001020 intersect A052382.

Extensions

Keyword:fini removed by Jianing Song, Jan 28 2023 as finiteness is only conjectured.

A195945 Powers of 13 which have no zero in their decimal expansion.

Original entry on oeis.org

1, 13, 169, 2197, 28561, 371293, 62748517, 137858491849, 3937376385699289
Offset: 1

Views

Author

M. F. Hasler, Sep 25 2011

Keywords

Comments

Probably finite. Is 3937376385699289 the largest term?
No further terms up to 13^25000. - Harvey P. Dale, Oct 01 2011
No further terms up to 13^45000. - Vincenzo Librandi, Jul 31 2013
No further terms up to 13^(10^9). - Daniel Starodubtsev, Mar 22 2020

Crossrefs

For other zeroless powers x^n, see A238938 (x=2), A238939, A238940, A195948, A238936, A195908, A195946 (x=11), A195945, A195942, A195943, A103662.
For the corresponding exponents, see A007377, A008839, A030700, A030701, A008839, A030702, A030703, A030704, A030705, A030706, A195944 and also A020665.
For other related sequences, see A052382, A027870, A102483, A103663.

Programs

  • Magma
    [13^n: n in [0..2*10^4] | not 0 in Intseq(13^n)]; // Bruno Berselli, Sep 26 2011
  • Mathematica
    Select[13^Range[0,250],DigitCount[#,10,0]==0&] (* Harvey P. Dale, Oct 01 2011 *)
  • PARI
    for(n=0,9999, is_A052382(13^n) && print1(13^n,","))
    

Formula

Equals A001022 intersect A052382 (as a set).
Equals A001022 o A195944 (as a function).

A305939 Number of powers of 9 having exactly n digits '0' (in base 10), conjectured.

Original entry on oeis.org

12, 7, 18, 3, 9, 13, 11, 11, 6, 9, 17, 15, 12, 9, 11, 6, 9, 9, 9, 13, 16, 9, 10, 7, 7, 9, 9, 13, 14, 15, 14, 15, 9, 9, 8, 8, 15, 11, 11, 12, 5, 12, 14, 5, 7, 14, 10, 8, 5, 16, 12
Offset: 0

Views

Author

M. F. Hasler, Jun 22 2018

Keywords

Comments

a(0) = 12 is the number of terms in A030705 and in A195945, which includes the power 7^0 = 1.
These are the row lengths of A305929. It remains an open problem to provide a proof that these rows are complete (as for all terms of A020665), but the search has been pushed to many orders of magnitude beyond the largest known term, and the probability of finding an additional term is vanishing, cf. Khovanova link.

Crossrefs

Cf. A030705 = row 0 of A305929: k such that 9^k has no 0's; A195945: these powers 9^k.
Cf. A020665: largest k such that n^k has no '0's.
Cf. A063626 = column 1 of A305929: least k such that 9^k has n digits 0 in base 10.
Cf. A305942 (analog for 2^k), ..., A305947, A305938 (analog for 8^k).

Programs

  • PARI
    A305939(n,M=99*n+199,x=9)=sum(k=0,M,#select(d->!d,digits(x^k))==n)
    
  • PARI
    A305939_vec(nMax,M=99*nMax+199,x=9,a=vector(nMax+=2))={for(k=0,M,a[min(1+#select(d->!d,digits(x^k)),nMax)]++);a[^-1]}

A305942 Number of powers of 2 having exactly n digits '0' (in base 10), conjectured.

Original entry on oeis.org

36, 41, 31, 34, 25, 32, 37, 23, 43, 47, 33, 35, 29, 27, 27, 39, 34, 34, 28, 29, 31, 30, 38, 25, 35, 35, 36, 40, 32, 40, 43, 39, 32, 30, 30, 32, 36, 39, 23, 26, 31, 37, 27, 28, 33, 39, 28, 44, 34, 27, 43, 33, 27, 32, 31, 27, 27, 32, 35, 34, 36, 28, 32, 39, 38, 40, 28, 43, 38, 32, 22
Offset: 0

Views

Author

M. F. Hasler, Jun 21 2018

Keywords

Comments

a(0) = 36 is the number of terms in A007377 and in A238938, which includes the power 2^0 = 1.
These are the row lengths of A305932. It remains an open problem to provide a proof that these rows are complete (as for all terms of A020665), but the search has been pushed to many orders of magnitude beyond the largest known term, and the probability of finding an additional term is vanishing, cf. Khovanova link.
The average of the first 100000 terms is ~33.219 with a minimum of 12 and a maximum of 61. - Hans Havermann, Apr 26 2020

Crossrefs

Row lengths of A305932 (row n = exponents of 2^k with n '0's).
Cf. A007377 = {k | 2^k has no digit 0}; A238938: powers of 2 with no digit 0.
Cf. A298607: powers of 2 with the digit '0' in their decimal expansion.
Cf. A020665: largest k such that n^k has no digit 0 in base 10.
Cf. A031146: least k such that 2^k has n digits 0 in base 10.
Cf. A071531: least r such that n^r has a digit 0, in base 10.
Cf. A306112: largest k such that 2^k has n digits 0, in base 10.

Programs

  • PARI
    A305942(n,M=99*n+199)=sum(k=0,M,#select(d->!d,digits(2^k))==n)
    
  • PARI
    A305942_vec(nMax,M=99*nMax+199,a=vector(nMax+=2))={for(k=0,M,a[min(1+#select(d->!d,digits(2^k)),nMax)]++);a[^-1]}
Showing 1-10 of 27 results. Next