OFFSET
0,2
COMMENTS
The polynomials encoded by these numbers could also be called "Fernandez spiral polynomials" after Neil Fernandez, who discovered sequence A078510, which is obtained when they are evaluated at X=1.
The polynomial recurrence uses the same composition rules as the Fibonacci polynomials (A206296), but with the neighborhood rules of A078510, where the other polynomial is taken from the nearest inner neighbor (A265409) when the polynomials are arranged as a spiral into a square grid. See A265409 for the illustration.
FORMULA
EXAMPLE
n a(n) prime factorization Spironacci polynomial
------------------------------------------------------------
0 1 (empty) S_0(x) = 0
1 2 p_1 S_1(x) = 1
2 3 p_2 S_2(x) = x
3 5 p_3 S_3(x) = x^2
4 7 p_4 S_4(x) = x^3
5 11 p_5 S_5(x) = x^4
6 13 p_6 S_6(x) = x^5
7 17 p_7 S_7(x) = x^6
8 38 p_8 * p_1 S_8(x) = x^7 + 1
9 138 p_9 * p_2 * p_1 S_9(x) = x^8 + x + 1
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 13 2015
STATUS
approved