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

A374923 a(n) is the least k such that 2^k begins with n!.

Original entry on oeis.org

0, 0, 1, 6, 81, 80, 56, 7284, 33889, 2044921, 8151937, 127668791, 258943304, 19207561921, 189815680859, 2687562198191, 75909586168557, 512148453482307, 5376323935222903, 502774568129731130, 1053338431686717460, 122114339415457901831, 2120280158164651048122
Offset: 0

Views

Author

Zhining Yang, Jul 23 2024

Keywords

Examples

			a(4) = 81 because 2^81 = 2417851639229258349412352 is the smallest power of 2 beginning with 4! = 24.
		

Crossrefs

Programs

  • Mathematica
    a[n_] := Module[{target = IntegerDigits[n!], k = 0},
       While[UnsameQ[Take[IntegerDigits[2^k], Length@target], target],
        k++]; k];
    Table[a[n], {n, 0, 8}]

Formula

a(n) = A018856(n!).

Extensions

a(13) onwards from Zhao Hui Du, Oct 02 2024

A385971 Smallest m such that 5^m begins with n 9's after the first digit.

Original entry on oeis.org

0, 8, 195, 799, 28737, 167821, 325146, 6432162, 543157237, 1807789217, 3731189547, 3731189547
Offset: 0

Views

Author

Giulio Bonfissuto, Jul 13 2025

Keywords

Comments

a(n) is also the smallest m such that 1/2^m begins with n 9's after the first nonzero digit.
a(n) is equal to A152561(n)-1 for n=2, 6, 7 and possibly for many other terms.
When summing a series with dominant term 1/2^m (such as the Riemann zeta function), the n 9's here show how small further terms must be to avoid changing the initial decimal digit from 1/2^m.

Examples

			5^a(0) = 5^0      = 1
5^a(1) = 5^8      = 390625
5^a(2) = 5^195    = 1991364888915565346...
5^a(3) = 5^799    = 2999393627791261909...
5^a(4) = 5^28737  = 1999929120817815105...
5^a(5) = 5^167821 = 6999994116858573262...
		

Crossrefs

Formula

a(n) = Min_{d=1..9} S(d*10^(n+1)-1) where 5^S(k) is the smallest power of 5 beginning with k.
Showing 1-2 of 2 results.