login
A192544
Bases b such that all integers m having the commuting property r(m)^2 = r(m^2), where r is cyclic replacement of digits d->(d+1) mod b, are of the form m = (b/2 - 1)*(b^k - 1)/(b - 1) + 1 for k >= 1.
5
8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 144, 148, 152, 156, 160, 164, 168, 172, 176, 180, 184, 188, 192, 196, 200, 204, 208, 212, 216, 220, 224, 228, 232, 236, 240, 244, 248, 252, 256, 260, 264
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.
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
Except for initial terms, same as A008586.
Sequence in context: A081925 A049199 A337806 * A302139 A160392 A242272
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