OFFSET
1,1
COMMENTS
The bases b form the arithmetic sequence 8+4*k, k>=0, so b/2 is necessarily even. The bases b=2 and b=4 have b/2 as the only number with the commuting property. No odd base b has the commuting property.
LINKS
FORMULA
From Chai Wah Wu, Dec 29 2021: (Start)
a(n) = 2*a(n-1) - a(n-2) for n > 2.
G.f.: x*(8 - 4*x)/(x - 1)^2. (End)
EXAMPLE
In base 8, the numbers with the commuting property are 4, 34, 334, 3334, 33334, 333334 etc, given by the formula 3*(8^k - 1)/7 + 1.
MATHEMATICA
a[n_] := 4*(n + 1); Table[a[n], {n, 1, 65}] (* Robert P. P. McKone, Aug 25 2023 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Walter Kehowski, Jul 04 2011
EXTENSIONS
More terms from Chai Wah Wu, Dec 29 2021
Edited by Max Alekseyev, Aug 24 2023
STATUS
approved