The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A371730 Indices of records in A371729: numbers k with A371729(k) > A371729(m) for all m < k. 2
2, 5, 9, 13, 17, 25, 37, 41, 49, 73, 97, 109, 161, 181, 289, 307, 361, 433, 529, 701, 841, 881, 961, 1189, 1369, 1681, 1849, 2209, 2393, 2449, 3277, 3457, 3781, 4096, 4159, 4841, 4861, 5741, 5851, 6049, 7921, 10201, 11449, 11881, 15049, 15401, 19601, 27026, 32768 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The corresponding record values are 0, 1, 2, 3, 4, 5, 7, 8, 9, 11, 12, ... (see the link for more values).
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..69 (terms below 10^6)
Wikipedia, Pseudoprime.
MATHEMATICA
f[k_] := Count[Range[4, k - 1], _?(CompositeQ[#] && PowerMod[k, # - 1, #] == 1 &)]; seq[kmax_] := Module[{s = {}, fm = -1, f1}, Do[f1 = f[k]; If[f1 > fm, fm = f1; AppendTo[s, k]], {k, 2, kmax}]; s]; seq[2500]
PROG
(PARI) f(n) = {my(c=0); forcomposite(k = 4, n-1, if(Mod(n, k)^(k-1) == 1, c++)); c; }
lista(kmax) = {my(fm = -1, f1); for(k = 2, kmax, f1 = f(k); if(f1 > fm, fm = f1; print1(k, ", "))); }
CROSSREFS
Cf. A371729.
Sequence in context: A353036 A182814 A351628 * A055025 A178805 A088907
KEYWORD
nonn
AUTHOR
Amiram Eldar, Apr 05 2024
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 21 00:14 EDT 2024. Contains 372720 sequences. (Running on oeis4.)