login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A356860
a(n) is the number of digits in the product of the first n numbers not divisible by 5.
4
1, 1, 1, 1, 2, 3, 4, 4, 5, 6, 7, 9, 10, 11, 12, 13, 15, 16, 17, 19, 20, 22, 23, 24, 26, 27, 29, 30, 32, 33, 35, 37, 38, 40, 41, 43, 45, 46, 48, 50, 51, 53, 55, 57, 58, 60, 62, 64, 65, 67, 69, 71, 73, 74, 76, 78, 80, 82, 84, 85, 87, 89, 91, 93, 95, 97, 99, 101, 103
OFFSET
0,5
FORMULA
a(n) = A055642(A356858(n)).
MATHEMATICA
Table[Length[IntegerDigits[Product[Floor[(5i-1)/4], {i, n}]]], {n, 0, 68}]
PROG
(Python)
from math import prod
def a(n): return len(str(prod((5*k-1)//4 for k in range(1, n+1))))
print([a(n) for n in range(69)]) # Michael S. Branicky, Sep 01 2022
CROSSREFS
Cf. A356859 (number of zero digits), A356861 (number of nonzero digits).
Sequence in context: A268084 A261085 A017876 * A017865 A317143 A351520
KEYWORD
nonn,base
AUTHOR
Stefano Spezia, Sep 01 2022
STATUS
approved