OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = n*4^floor(log_4(n)+1) + n. - Ilya Gutkovskiy, Jan 26 2018
EXAMPLE
102_10 = 1212_4. - Jon E. Schoenfield, Feb 11 2021
MATHEMATICA
a[n_] := n + n*4^Floor[Log[4, n] + 1]; Array[a, 50] (* Amiram Eldar, Apr 06 2021 *)
b4jQ[n_]:=Module[{idn4=IntegerDigits[n, 4], len}, len=Length[idn4]; EvenQ[len] && Take[ idn4, len/2]==Take[idn4, -len/2]]; Select[Range[3000], b4jQ] (* or *) Table[If[ #[[1]] == 0, Nothing, FromDigits[#, 4]]&/@(Flatten[Join[{#, #}]]&/@Tuples[ {0, 1, 2, 3}, n]), {n, 3}]//Flatten(* Harvey P. Dale, Sep 02 2022 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
David W. Wilson, Melia Aldridge (ma38(AT)spruce.evansville.edu)
STATUS
approved