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

A004152 Sum of digits of n!.

Original entry on oeis.org

1, 1, 2, 6, 6, 3, 9, 9, 9, 27, 27, 36, 27, 27, 45, 45, 63, 63, 54, 45, 54, 63, 72, 99, 81, 72, 81, 108, 90, 126, 117, 135, 108, 144, 144, 144, 171, 153, 108, 189, 189, 144, 189, 180, 216, 207, 216, 225, 234, 225, 216, 198, 279, 279, 261, 279, 333, 270, 288
Offset: 0

Views

Author

Keywords

Comments

If n > 5, then 9 divides a(n). - Enrique Pérez Herrero, Mar 01 2009

Examples

			a(5) = 3 because 5! = 120 and 1 + 2 + 0 = 3.
a(6) = 9 because 6! = 720 and 7 + 2 + 0 = 9.
		

Crossrefs

Cf. A000142 (factorial), A007953 (sum of digits), A079584 (same in base 2), A086358 (digital root of n!).
Cf. A066419 (k such that a(k) does not divide k!).

Programs

Formula

Luca shows that a(n) >> log n. In particular, a(n) > log_10 n - log_10 log_10 n. - Charles R Greathouse IV, Dec 27 2011
a(n) < floor(log_10(n)*9/2). - Carmine Suriano, Feb 20 2013
a(n) = A007953(A000142(n)). - Michel Marcus, Sep 18 2014
a(n) < 9*(A034886(n) - A027868(n)). - Enrique Pérez Herrero, Nov 16 2014
Sanna improved Luca's result to a(n) >> log n log log log n. - Charles R Greathouse IV, Jan 30 2015
a(n) = 9*A202708(n), n>=6. - R. J. Mathar, Jul 30 2021

A202708 Sum of digits of n! divided by 9.

Original entry on oeis.org

1, 1, 1, 3, 3, 4, 3, 3, 5, 5, 7, 7, 6, 5, 6, 7, 8, 11, 9, 8, 9, 12, 10, 14, 13, 15, 12, 16, 16, 16, 19, 17, 12, 21, 21, 16, 21, 20, 24, 23, 24, 25, 26, 25, 24, 22, 31, 31, 29, 31, 37, 30, 32, 36, 32, 35, 34, 37, 36, 39, 39, 41, 38, 39, 51, 47, 48, 35, 42, 48
Offset: 6

Views

Author

Michel Lagneau, Dec 23 2011

Keywords

Comments

(sum of digits of n!) / 9 is an integer for n > 5.

Crossrefs

Programs

  • Mathematica
    Table[Sum[DigitCount[n!][[i]]*i/9, {i, 1, 9}], {n, 6, 100}]
    Total[IntegerDigits[#]]/9&/@(Range[6,80]!) (* Harvey P. Dale, Nov 22 2023 *)
  • PARI
    a(n) = sumdigits(n!)/9; \\ Michel Marcus, Aug 12 2022

Formula

a(n) = A004152(n)/9.

A300659 Product of digits of n!.

Original entry on oeis.org

1, 1, 2, 6, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Offset: 0

Views

Author

Jaroslav Krizek, Jun 05 2018

Keywords

Comments

Also multiplicative digital root of n!.
a(n) = 0 for n >= 5.
Decimal expansion of 2817/2500. - Eric Chen, Jun 06 2018

Crossrefs

Programs

  • Magma
    [&*Intseq(Factorial(n)): n in [0..100]]
    
  • Mathematica
    Array[Times @@ IntegerDigits[#!] &, 105] (* Michael De Vlieger, Jun 06 2018 *)
  • PARI
    a(n) = my(d=digits(n!)); prod(k=1, #d, d[k]); \\ Michel Marcus, Jun 05 2018

Formula

a(n) = A031347(A000142(n)).
a(n) = A007954(A000142(n)). - Eric Chen, Jun 06 2018
Showing 1-3 of 3 results.