OFFSET
1,3
COMMENTS
An addition-multiplication-exponentiation chain for n is a finite sequence of numbers, starting with 1 and ending with n, in which each element except 1 equals x+y, x*y, or x^y for two preceding elements x and y (not necessarily distinct). The length of the chain is the number of elements in the chain, excluding 1.
LINKS
Pontus von Brömssen, Table of n, a(n) for n = 1..10000
EXAMPLE
a(248) = 5 because the shortest addition-multiplication-exponentiation chain for 248 has length 5: (1, 2, 3, 5, 243, 248).
CROSSREFS
KEYWORD
nonn
AUTHOR
Pontus von Brömssen, Apr 27 2025
STATUS
approved
