OFFSET
1,1
LINKS
Winston de Greef, Table of n, a(n) for n = 1..5000
FORMULA
a(n) = 3n - A001285(n-1) for n >= 1.
EXAMPLE
MATHEMATICA
PROG
(PARI) a(n) = 3*n - 1 - hammingweight(n-1)%2; \\ Kevin Ryde, Aug 04 2022
(Python)
def A356133(n): return 3*n-(2 if (n-1).bit_count()&1 else 1) # Chai Wah Wu, Mar 01 2023
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Aug 04 2022
STATUS
approved