A093914 a(1) = 1; for n > 1, a(n) = curling number of (b(1),...,b(n-1)), where b() = Thue-Morse sequence A010060 (with offset changed to 1).
1, 1, 1, 2, 1, 1, 2, 2, 1, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 2, 2, 1, 2, 2, 1, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 1, 2, 2, 2, 2, 2, 2
Offset: 1
Keywords
Links
- Andrey Zabolotskiy, Table of n, a(n) for n = 1..16384
- F. J. van de Bult, D. C. Gijswijt, J. P. Linderman, N. J. A. Sloane and Allan Wilks, A Slow-Growing Sequence Defined by an Unusual Recurrence, J. Integer Sequences, Vol. 10 (2007), #07.1.2.
- F. J. van de Bult, D. C. Gijswijt, J. P. Linderman, N. J. A. Sloane and Allan Wilks, A Slow-Growing Sequence Defined by an Unusual Recurrence [pdf, ps].
- Index entries for sequences related to curling numbers
Programs
-
Mathematica
(* Function curlN is defined in A094840 *) (* Function ThueMorse needs Mma version >= 11 *) a[n_] := If[n == 1, 1, curlN[Array[ThueMorse, n-1, 0]]]; Table[a[n], {n, 1, 100}] (* Jean-François Alcover, Oct 18 2024 *)
-
Python
p, tm, s = 8, 0, 1 for i in range(p): tm += (tm^((1<
>(i-j))&((1<>(i-2*j))&((1< Andrey Zabolotskiy, Mar 03 2017
Comments