OFFSET
1,2
COMMENTS
The sequence is infinite and the pattern is visible after a(7): a(2n) = 2*a(2n-1) and a(2n+1) = 5*a(2n), n > 3.
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (0,10).
FORMULA
G.f.: x*(2*x + 1)*(96*x^6 + 24*x^4 + 6*x^2 - 1)/(10*x^2 - 1). - Paolo Xausa, Aug 29 2025
MATHEMATICA
LinearRecurrence[{0, 10}, 2^Range[0, 7], 30] (* Paolo Xausa, Aug 29 2025 *)
PROG
(PARI) nzd(k) = Set(select(x->(x != 0), digits(k)));
lista(nn) = my(va=vector(nn)); va[1]=1; for (n=2, nn, my(newa = va[n-1], k=1, sd = nzd(newa)); while (#setintersect(nzd(newa), sd), k++; newa=k*va[n-1]); va[n] = newa; ); va; \\ Michel Marcus, Aug 28 2025
CROSSREFS
KEYWORD
base,nonn,easy
AUTHOR
Amarnath Murthy, Feb 15 2003
EXTENSIONS
Offset changed and more terms from Sean A. Irvine, Aug 27 2025
STATUS
approved
