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!)
A258756 a(n) = common difference giving the highest score in the game "Sequences" for a sequence with largest element n and as many elements as possible. 0
1, 1, 2, 2, 3, 3, 4, 3, 5, 5, 4, 4, 7, 3, 4, 4, 3, 3, 4, 3, 3, 3, 3, 3, 3, 3, 4, 4, 3, 3, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
3,3
COMMENTS
The aim of the game is to find, in the given numbered tiles, arithmetic sequences of at least three elements. The score for a sequence is (max element)*(common difference ^ num elements). This sequence gives the common difference which produces the best score for a sequence with largest element n, and containing as many elements as possible.
This sequence converges to 3, which must have something to do with the fact that log(x)/x is maximized at x=e. Is n=45 the last time a(n) is not 3?
LINKS
Christian Perfect, Sequences game
PROG
(Python)
def score(n, step):
...return n*(step**(n//step+(1 if n%step!=0 else 0)))
.
def best(n):
...return max(range(1, (n-1)//2+1), key=lambda step:score(n, step))
CROSSREFS
Sequence in context: A323636 A283367 A322528 * A127431 A289777 A182921
KEYWORD
nonn,easy
AUTHOR
Christian Perfect, Jun 09 2015
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 April 18 02:22 EDT 2024. Contains 371767 sequences. (Running on oeis4.)