Annual Appeal: Please make a donation (tax deductible in USA) to keep the OEIS running. Over 5000 articles have referenced us, often saying "we discovered this result with the help of the OEIS".
Similar to A169748, but now B = 2,3,5,7,... (the primes).
Table of n, a(n) for n=1..67.
Sequence in context: A274632 A186706 A169749 * A249558 A072007 A078783
Adjacent sequences: A169747 A169748 A169749 * A169751 A169752 A169753
Rodolfo Kurchan, Apr 08 2010
Corrected and extended by D. S. McNeil, May 09 2010