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!)
A301426 Number of steps required in the worst case for three knights to find the princess in a castle with n rooms arranged in a line (Castle and princess puzzle). 2
1, 1, 1, 2, 2, 2, 2, 3, 4, 4, 4, 4, 5, 6, 6, 6, 6, 7, 8, 8 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
The main entry for this problem is A300576. In this version there are three knights who are searching for the princess; each knight can search a different room.
LINKS
Dmitry Kamenetsky, Optimal solutions
FORMULA
It seems that for n >= 3:
if n = 3 mod 5, then a(n) = (n - 3)/5*2 + 1,
otherwise a(n) = floor((n - 4)/5)*2 + 2.
CROSSREFS
Sequence in context: A291267 A261221 A080352 * A194222 A025779 A085003
KEYWORD
nonn,more
AUTHOR
Dmitry Kamenetsky, Mar 21 2018
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 8 18:48 EDT 2024. Contains 375023 sequences. (Running on oeis4.)