OFFSET
1,2
COMMENTS
The corresponding values of A011776 are 1, 1, 1, 1, 2, 2, 3, 4, 10, 16, 60, ... .
All the terms above 3 are composite numbers since A011776(k) = 1 if and only if k = 4 or a prime.
Are there 3 consecutive integers above 8 that have an equal value of A011776? There are none below 10^10.
Conjecture: if p != 3 is a prime such that 2*p-1 is also a prime (p is in A005382 \ {3}), then 4*p^2 - 1 is a term of this sequence.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..1000
MATHEMATICA
s[1] = 1; s[n_] := IntegerExponent[n!, n]; seq[kmax_] := Module[{v = {}, s1 = s[1]}, Do[s2 = s[k]; If[s1 == s2, AppendTo[v, k-1]]; s1 = s2, {k, 2, kmax}]; v]; seq[10^4]
PROG
(PARI) lista(kmax) = {my(s1 = 1, s2); for(k = 2, kmax, s2 = valuation(k!, k); if(s1 == s2, print1(k-1, ", ")); s1 = s2); }
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Jun 15 2024
STATUS
approved