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!)
A356415 a(n) is the least start of exactly n consecutive numbers that have an equal number of even and odd exponents in their prime factorization (A187039), or -1 if no such run of consecutive numbers exists. 1
1, 44, 603, 906596, 792007675 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(6) > 6.5*10^10, if it exist.
LINKS
EXAMPLE
a(2) = 44 since 44 = 2^2 * 11 and 45 = 3^2 * 5 both have one even and one odd exponent in their prime factorization, 43 and 46 have no even exponent, and 44 is the least number with this property.
MATHEMATICA
f[p_, e_] := (-1)^e; q[1] = True; q[n_] := Plus @@ f @@@ FactorInteger[n] == 0; seq[len_, nmax_] := Module[{s = Table[0, {len}], v = {1}, n = 2, c = 0, m}, While[c <= len && n <= nmax, If[q[n], v = Join[v, {n}], m = Length[v]; v = {}; If[0 <= m <= len && s[[m]] == 0, c++; s[[m]] = n - m]]; n++]; s]; seq[4, 10^6]
CROSSREFS
Sequence in context: A202075 A297680 A264680 * A289647 A252869 A296649
KEYWORD
nonn,more
AUTHOR
Amiram Eldar, Aug 06 2022
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 April 25 11:39 EDT 2024. Contains 371969 sequences. (Running on oeis4.)