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!)
A293198 a(n) is the least positive k such that f(k) = f(k + n) where f(k) = A000120(k) / A070939(k). 2
1, 5, 1, 9, 3, 21, 1, 2, 2, 19, 2, 38, 3, 37, 1, 33, 15, 35, 38, 37, 84, 35, 76, 12, 7, 10, 9, 10, 3, 4, 1, 10, 4, 2, 5, 2, 2, 6, 5, 2, 2, 5, 2, 9, 4, 6, 5, 2, 2, 5, 2, 6, 5, 5, 2, 5, 7, 137, 138, 134, 3, 133, 1, 129, 63, 131, 134, 133, 140, 131, 138, 137, 152, 139, 134, 133, 148, 131, 146, 56, 336, 135, 150, 52 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Numbers m such that a(2^m*(2^(m + 1) - 1) + 1) = 2^m are 0, 1, 2, 3, 4, 5, 6, 8, 9, 11, 14, 15, 18, 20, 21, ...
Numbers t such that a(t) = 2 are 7, 8, 10, 33, 35, 36, 39, 40, 42, 47, 48, 50, ...
Numbers t such that a(t) > t are 0, 1, 3, 5, 9, 11, 13, 15, 17, 18, 19, 20, 21, ...
LINKS
FORMULA
a(n) <> n for all n >= 0.
a(n) <= 5*n for all n >= 1.
a(2^m - 1) = 1 for all m >= 1.
a(2^m - 2^2) = 2^2 - 1 for all m >= 3.
a(2^m - 2^3) = 2^3 - 1 for all m >= 5.
a(2^m - 2^4) = 2^4 - 1 for all m >= 7.
a(2^m - 2^5) = 2^5 - 1 for all m >= 10.
a(2^m - 2^6) = 2^6 - 1 for all m >= 13.
a(2^m - 2^7) = 2^7 - 1 for all m >= 17.
a(2^m - 2^8) = 2^8 - 1 for all m >= 21.
a(2^m - 2^9) = 2^9 - 1 for all m >= 26.
a(2^(p - 1)) = 2^(p - 1) - 1 and a(2^(p - 1) - 1) = 2^p + 1 for all primes p.
a(2^(p - 1) + 1) = 2^p + 3 for all primes p >= 5.
EXAMPLE
a(5) = 21 because 21 = 2^4 + 2^2 + 2^0, 21 + 5 = 2^4 + 2^3 + 2^1; A000120(21) / A070939(21) = A000120(21 + 5) / A070939(21 + 5) and 21 is the least number with this property.
PROG
(PARI) a(n) = {my(k=1); while (hammingweight(k+n)/#binary(k+n) != hammingweight(k) /#binary(k), k++); k; }
CROSSREFS
Sequence in context: A103133 A098318 A360750 * A193029 A094650 A189234
KEYWORD
nonn,base,look,easy
AUTHOR
Altug Alkan, Oct 05 2017
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 24 18:17 EDT 2024. Contains 371962 sequences. (Running on oeis4.)