|
|
A200647
|
|
Number of equal bit-runs in Wythoff representation of n.
|
|
2
|
|
|
1, 1, 2, 2, 1, 2, 3, 2, 2, 3, 4, 2, 1, 2, 3, 4, 4, 3, 2, 3, 2, 2, 3, 4, 4, 3, 4, 5, 4, 2, 3, 4, 2, 1, 2, 3, 4, 4, 3, 4, 5, 4, 4, 5, 6, 4, 3, 2, 3, 4, 4, 3, 2, 3, 2, 2, 3, 4, 4, 3, 4, 5, 4, 4, 5, 6, 4, 3, 4, 5, 6, 6, 5, 4, 5, 4, 2, 3, 4, 4, 3, 4, 5, 4, 2, 3, 4
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
REFERENCES
|
Wolfdieter Lang, The Wythoff and the Zeckendorf representations of numbers are equivalent, in G. E. Bergum et al. (edts.) Application of Fibonacci numbers vol. 6, Kluwer, Dordrecht, 1996, pp. 319-337. [See A317208 for a link.]
|
|
LINKS
|
Aviezri S. Fraenkel, From Enmity to Amity, American Mathematical Monthly, Vol. 117, No. 7 (2010) 646-648.
|
|
EXAMPLE
|
The Wythoff representation of 29 is '10110'. This has 4 equal bit-runs: '1', '0', '11' and '0'. So a(29) = 4.
|
|
MATHEMATICA
|
z[n_] := Floor[(n + 1)*GoldenRatio] - n - 1; h[n_] := z[n] - z[n - 1]; w[n_] := Module[{m = n, zm = 0, hm, s = {}}, While[zm != 1, hm = h[m]; AppendTo[s, hm]; If[hm == 1, zm = z[m], zm = z[z[m]]]; m = zm]; s]; a[n_] := Length[Split[w[n]]]; Array[a, 100] (* Amiram Eldar, Jul 01 2023 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|