login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A230631
a(n) = n + (sum of digits in base-4 representation of n).
11
0, 2, 4, 6, 5, 7, 9, 11, 10, 12, 14, 16, 15, 17, 19, 21, 17, 19, 21, 23, 22, 24, 26, 28, 27, 29, 31, 33, 32, 34, 36, 38, 34, 36, 38, 40, 39, 41, 43, 45, 44, 46, 48, 50, 49, 51, 53, 55, 51, 53, 55, 57, 56, 58, 60, 62, 61, 63, 65, 67, 66, 68, 70, 72, 65, 67, 69, 71, 70, 72, 74, 76, 75, 77, 79, 81, 80, 82, 84, 86, 82
OFFSET
0,2
FORMULA
a(n) = A053737(n) + n. - Reinhard Zumkeller, Mar 20 2015
PROG
(Haskell) a230631 n = a053737 n + n -- Reinhard Zumkeller, Mar 20 2015
(PARI) apply( {A230631(n)=n+sumdigits(n, 4)}, [0..99]) \\ M. F. Hasler, Oct 30 2024
CROSSREFS
Cf. A010064 (missing numbers), A230632 (number of inverses), A230633-A230635.
Related base-4 sequences: A053737, A230632, A010064, A230633, A230634, A230635, A230636, A230637, A230638, A010065 (trajectory of 1)
Sequence in context: A254763 A023825 A022485 * A271324 A177961 A353733
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Oct 30 2013
STATUS
approved