A248875 First n elements of the Kolakoski sequence read as a ternary number.
0, 1, 5, 17, 52, 157, 473, 1420, 4262, 12788, 38365, 115097, 345293, 1035880, 3107641, 9322925, 27968776, 83906329, 251718989, 755156969, 2265470908, 6796412726, 20389238179, 61167714538, 183503143616, 550509430849, 1651528292549, 4954584877649, 14863754632948
Offset: 0
Links
- Danny Rorabaugh, Table of n, a(n) for n = 0..6615
- Eric Weisstein's World of Mathematics, Kolakoski Sequence
- Eric Weisstein's World of Mathematics, Ternary
Formula
a(n+1) = 3*a(n) + A000002(n+1).