A232637 Odious numbers of order 2: a(n) = A000069(A000069(n)).
1, 2, 7, 13, 14, 21, 25, 26, 31, 37, 41, 42, 49, 50, 55, 61, 62, 69, 73, 74, 81, 82, 87, 93, 97, 98, 103, 109, 110, 117, 121, 122, 127, 133, 137, 138, 145, 146, 151, 157, 161, 162, 167, 173, 174, 181, 185, 186, 193, 194, 199, 205, 206, 213, 217, 218, 223, 229, 233, 234, 241, 242, 247, 253
Offset: 1
Examples
The first odious number, A000069(1) = 1, and A000069(1) = 1, so a(1) = 1. The second odious number, A000069(2) = 2, and A000069(2) = 2, so a(2) = 2. Those were the only fixed points of A000069, and after that, we have: The third odious number, A000069(3) = 4, and A000069(4) = 7, thus a(3) = 7. The fourth odious number, A000069(4) = 7, and A000069(7) = 13, thus a(4) = 13.
Links
- Antti Karttunen, Table of n, a(n) for n = 1..8193
Crossrefs
Programs
-
PARI
a(n)=4*n-if(hammingweight(n-1)%2,if(hammingweight(n-2)%2,5,6),3) \\ Charles R Greathouse IV, Dec 05 2013
-
Scheme
(define (A232637 n) (A000069 (A000069 n)))
Formula
4n-6 <= a(n) <= 4n-3, see PARI script. - Charles R Greathouse IV, Dec 05 2013
Comments