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!)
A068539 Number of quinternary cubefree words of length n. 0
1, 5, 25, 120, 580, 2800, 13500, 65100, 313940, 1513820, 7299760, 35200020, 169736780, 818482260, 3946776920, 19031623000 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
PROG
(Python)
from itertools import product
def cf(s):
for l in range(1, len(s)//3 + 1):
for i in range(len(s) - 3*l + 1):
if s[i:i+l]*2 == s[i+l:i+3*l]: return False
return True
def a(n):
if n == 0: return 1
return 5*sum(cf("0"+"".join(w)) for w in product("01234", repeat=n-1))
print([a(n) for n in range(0, 10)]) # Michael S. Branicky, Apr 16 2021
CROSSREFS
Sequence in context: A269602 A089927 A269463 * A123871 A268453 A343801
KEYWORD
more,nonn
AUTHOR
Sascha Kurz, Mar 22 2002
EXTENSIONS
a(0) prepended and a(14)-a(15) by Michael S. Branicky, Apr 16 2021
STATUS
approved

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 August 4 11:03 EDT 2024. Contains 374914 sequences. (Running on oeis4.)