login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A221155 The generalized Fibonacci words q_n^[4]. 4

%I #15 Oct 02 2018 11:13:58

%S 1,1313,13133,131331313,13133131331311,13133131331311313113131,

%T 1313313133131131311313113133131331311,

%U 131331313313113131131311313313133131131311313113133131331313

%N The generalized Fibonacci words q_n^[4].

%H Lars Blomberg, <a href="/A221155/b221155.txt">Table of n, a(n) for n = 0..12</a>

%H José L. Ramírez, Gustavo N. Rubiano, and Rodrigo de Castro, <a href="http://arxiv.org/abs/1212.1368">A Generalization of the Fibonacci Word Fractal and the Fibonacci Snowflake</a>, arXiv preprint arXiv:1212.1368 [cs.DM], 2012.

%t bar[a_List] := a /. {1 -> 3, 3 -> 1};

%t q[0, _] = {}; q[1, _] = {1}; q[2, i_] := If[EvenQ[i], Table[{1, 3}, {i/2}], Append[Table[{1, 3}, {(i-1)/2}], 1]] // Flatten;

%t q[n_, i_] := q[n, i] = If[EvenQ[i], If[Mod[n, 3] == 1, Join[q[n-1, i], q[n-2, i]], Join[q[n-1, i], q[n-2, i] // bar]], If[Mod[n, 3] == 0, Join[q[n-1, i], q[n-2, i]], Join[q[n-1, i], q[n-2, i] // bar]]];

%t a[n_] := q[n+1, 4] // FromDigits;

%t Table[a[n], {n, 0, 7}] (* _Jean-François Alcover_, Oct 02 2018 *)

%Y Cf. A221153, A221154, A221155, A221156.

%K nonn

%O 0,2

%A _N. J. A. Sloane_, Jan 04 2013

%E a(5)-a(7) from _Lars Blomberg_, Sep 04 2017

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 04:13 EDT 2024. Contains 371235 sequences. (Running on oeis4.)