OFFSET
1,18
COMMENTS
This sequence has connections with A018819, the number of ways to reach a number by the process of starting from 1 and repeatedly adding 1 or multiplying by 2.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, Colored logarithmic scatterplot of (n, a(n)) for n = 1..100000 (where the color is function of n mod 5)
EXAMPLE
For n = 18:
- 18 can be expressed as (1+5)*3 and 1*3 + 5 + 5 + 5,
- so a(18) = 2.
PROG
(PARI) for (n=1, #a=vector(87), print1 (a[n]=if (n==1, 1, if (n-5>0, a[n-5], 0)+if (n%3==0, a[n/3], 0))", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Jun 05 2020
STATUS
approved