OFFSET
1,4
COMMENTS
a(n) = 0 iff n = 1. a(n) = 1 iff n-th lucky number is prime iff A000959(n) is in A031157 Numbers that are both lucky and prime. a(n) > 1 iff n-th lucky number is composite iff A000959(n) is in A031879 Composite lucky numbers [technically, A031879 should not begin with 1]. a(n) = 2 iff n-th lucky number is semiprime iff A000959(n) is in A001358. a(n) = 3 iff n-th lucky number has 3 prime factors (with multiplicity) iff A000959(n) is in A014612.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, May 07 2007
EXTENSIONS
More terms from R. J. Mathar, Oct 22 2010
STATUS
approved