Number of compositions (ordered partitions) of n into square parts (A000290) such that no two adjacent parts are equal (Carlitz compositions).

A301503

Number of compositions (ordered partitions) of n into square parts (A000290) such that no two adjacent parts are equal (Carlitz compositions).

Terms

    a(0) =1a(1) =1a(2) =0a(3) =0a(4) =1a(5) =2a(6) =1a(7) =0a(8) =0a(9) =2a(10) =4a(11) =2a(12) =0a(13) =2a(14) =7a(15) =8a(16) =4a(17) =3a(18) =7a(19) =14a(20) =16a(21) =11a(22) =9a(23) =18a(24) =32a(25) =35a(26) =30a(27) =32a(28) =49a(29) =74

External references