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.

Previous Showing 11-16 of 16 results.

A136771 n! never ends in this many 0's in base 11.

Original entry on oeis.org

11, 23, 35, 47, 59, 71, 83, 95, 107, 119, 131, 132, 144, 156, 168, 180, 192, 204, 216, 228, 240, 252, 264, 265, 277, 289, 301, 313, 325, 337, 349, 361, 373, 385, 397, 398, 410, 422, 434, 446, 458, 470, 482, 494, 506, 518, 530, 531, 543, 555, 567, 579, 591
Offset: 1

Views

Author

Carl R. White, Jan 21 2008

Keywords

Crossrefs

A136772 n! never ends in this many 0's in base 12.

Original entry on oeis.org

7, 16, 24, 29, 33, 37, 38, 45, 51, 53, 57, 64, 69, 73, 77, 78, 87, 93, 96, 104, 105, 109, 113, 117, 124, 125, 128, 132, 141, 145, 150, 158, 159, 165, 173, 177, 181, 185, 188, 190, 194, 198, 199, 201, 212, 213, 221, 225, 230, 234, 238, 239, 244, 248, 253, 254
Offset: 1

Views

Author

Carl R. White, Jan 21 2008

Keywords

Crossrefs

A181579 Smallest number m such that m! ends in exactly n trailing 0's (or 0 if no such m exists).

Original entry on oeis.org

0, 5, 10, 15, 20, 0, 25, 30, 35, 40, 45, 0, 50, 55, 60, 65, 70, 0, 75, 80, 85, 90, 95, 0, 100, 105, 110, 115, 120, 0, 0, 125, 130, 135, 140, 145, 0, 150, 155, 160, 165, 170, 0, 175, 180, 185, 190, 195, 0, 200, 205, 210, 215, 220, 0, 225, 230, 235, 240, 245, 0, 0, 250
Offset: 0

Views

Author

Lekraj Beedassy, Nov 02 2010

Keywords

Comments

The sequence locates the first occurrence of n in A027868.
Entries are zero if n is an element of A000966.

Crossrefs

Formula

a(n) = 5*A181578(n).

A181573 Impossible numbers of trailing zeros in the decimal representation of a factorial of any prime.

Original entry on oeis.org

5, 11, 17, 21, 23, 27, 28, 29, 30, 34, 36, 42, 45, 48, 49, 50, 52, 54, 59, 60, 61, 67, 70, 72, 73, 74, 78, 79, 80, 83, 85, 88, 91, 92, 96, 98, 101, 104, 105, 110, 111, 115, 116, 118, 122, 123, 126, 127, 129, 130, 131, 132, 135, 136, 141, 143, 147, 152, 153, 154, 155
Offset: 1

Views

Author

Lekraj Beedassy, Oct 31 2010

Keywords

Comments

No entry of A039716 ends with 5, 11, 17, 21,... consecutive zeros.

Crossrefs

Cf. A000966.

Programs

  • Mathematica
    f[n_] := IntegerExponent[Prime@n!, 10]; Complement[ Range[0, 157], Array[f, 115]] (* Robert G. Wilson v, Nov 05 2010 *)
    zOF[n_Integer?Positive]:=Module[{maxpow=0},While[5^maxpow<=n,maxpow++];Plus@@Table[ Quotient[n,5^i],{i,maxpow-1}]]; Attributes[zOF]={Listable}; With[{z=Union[zOF[Prime[Range[ 150]]]]},Complement[ Range[Max[z]],z]] (* Harvey P. Dale, Sep 17 2024 *)

Extensions

Definition rephrased, keyword:base added by R. J. Mathar, Nov 03 2010
More terms from Robert G. Wilson v, Nov 05 2010

A181578 The number k such that each of the five factorials (5k+j)!, j=0..4, has exactly n trailing zeros in its base-10 representation; 0 if no such k exists.

Original entry on oeis.org

0, 1, 2, 3, 4, 0, 5, 6, 7, 8, 9, 0, 10, 11, 12, 13, 14, 0, 15, 16, 17, 18, 19, 0, 20, 21, 22, 23, 24, 0, 0, 25, 26, 27, 28, 29, 0, 30, 31, 32, 33, 34, 0, 35, 36, 37, 38, 39, 0, 40, 41, 42, 43, 44, 0, 45, 46, 47, 48, 49, 0, 0, 50, 51, 52, 53, 54, 0, 55, 56, 57, 58, 59, 0, 60, 61, 62, 63
Offset: 0

Views

Author

Lekraj Beedassy, Nov 02 2010

Keywords

Comments

Entries are zero if n is an element of A000966.
This traces 5 consecutive occurrences of n in A027868.

Crossrefs

A255400 a(n) is the smallest nonnegative integer such that a(n)! contains a string of exactly n consecutive 0's.

Original entry on oeis.org

0, 5, 10, 15, 20, 264, 25, 30, 35, 40, 45, 101805, 50, 55, 60, 65, 70
Offset: 0

Views

Author

Martin Y. Champel, Feb 22 2015

Keywords

Comments

Most multiples of 5 belong to the sequence (if not all).
All terms whose indices are included in A000966 are far bigger than their neighboring terms whose indices are multiples of 5.
a(11) is a multiple of 5, we can verify a(11) = a(25448).

Examples

			a(0) = 0 as 0! = 1 does not contain '0'.
a(1) = 5 as 5! = 120 contains '0'.
a(2) = 10 as 10! = 3628800 contains '00' and 10 is the smallest integer for which the condition is met.
		

Crossrefs

Programs

  • PARI
    \\ uses is() from A000966
    f(k, special, sz, sz1) = my(f=k!); if (special, s=Str(f/10^valuation(f, 10)), s=Str(k!)); #strsplit(s, sz) - #strsplit(s, sz1);
    a(n) = if (n==0, return(0)); my(sz= concat(vector(n, k, "0")), sz1=concat(sz, "0"), k=1,special=is(n)); while (f(k, special, sz, sz1) != 1, k++); k; \\ Michel Marcus, Oct 25 2023
  • Python
    # Python version 2.7
    from math import factorial as fct
    def trailing_zero(n):
        k=0
        while n!=0:
            n/=5
            k+=n
        return k
    def A255400():
        index = 1
        f = 1
        while True:
            if trailing_zero(f) == index:
                print("A255400("+str(index)+") = " +str(f))
                index += 1
            elif trailing_zero(f) > index:
                while True:
                    clnzer = str(fct(f))[:-trailing_zero(f)]
                    if index*'0' in clnzer and (index+1)*'0' not in clnzer:
                        print("A255400("+str(index)+") = " +str(f))
                        index += 1
                        f = 0
                        break
                    f +=1
            f +=1
        return
    
  • Python
    import re
    def A255400(n):
        f, i, s = 1, 0, re.compile('[0-9]*[1-9]0{'+str(n)+'}[1-9][0-9]*')
        while s.match(str(f)+'1') is None:
            i += 1
            f *= i
        return i # Chai Wah Wu, Apr 02 2015
    
Previous Showing 11-16 of 16 results.