cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A358096 a(n) is the number of ways n can be reached in the algorithm explained in A358094 if the last operation is multiplication.

Original entry on oeis.org

1, 1, 1, 0, 0, 1, 0, 2, 1, 2, 0, 3, 0, 0, 2, 1, 0, 2, 0, 2, 0, 3, 0, 4, 0, 2, 1, 3, 0, 5, 0, 0, 3, 2, 0, 6, 0, 1, 2, 2, 0, 5, 0, 2, 3, 2, 0, 3, 0, 3, 2, 4, 0, 7, 0, 2, 1, 3, 0, 6, 0, 3, 2, 5, 0, 7, 0, 0, 2, 3, 0, 8, 0, 2, 3, 6, 0, 10, 0, 1
Offset: 1

Views

Author

Yifan Xie, Nov 01 2022

Keywords

Examples

			There are 3 ways to reach 12: (1*3+3)*2=12, (1*2+2)*3=12 and (1+3)*3=12.
		

Crossrefs

Formula

a(n) = A358095(n/2) + A358095(n/3) if n == 0 (mod 6);
a(n) = A358095(n/2) if n == 2 or 4 (mod 6);
a(n) = A358095(n/3) if n == 3 (mod 6);
a(n) = 0 if n == 1 or 5 (mod 6).