OFFSET
1,2
COMMENTS
For any n > 0, the binary representation of a(n) encodes a minimal way (in the sense of the number of operations) of obtaining A335155(n) by starting from 1 and then repeatedly adding 5 or multiplying by 3; the leading 1 corresponds to the starting value 1, and then the 0's correspond to adding 5 and the 1's correspond to multiplying by 3.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, PARI program for A335409
EXAMPLE
The first terms, alongside their binary representation and A335155(n), are:
n a(n) bin(a(n)) A335155(n)
-- ---- --------- ----------
1 1 1 1 = 1
2 3 11 3 = 1*3
3 2 10 6 = 1+5
4 6 110 8 = (1*3)+5
5 7 111 9 = 1*3*3
6 4 100 11 = 1+5+5
7 12 1100 13 = (1*3)+5+5
8 14 1110 14 = (1*3*3)+5
9 8 1000 16 = 1+5+5+5
10 5 101 18 = (1+5)*3
11 28 11100 19 = (1*3*3)+5+5
12 16 10000 21 = 1+5+5+5+5
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jun 06 2020
STATUS
approved
