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
KEYWORD
nonn,easy
AUTHOR
Christian Perfect, Jun 09 2015
STATUS
approved