login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A171424
(n-1)^(p-n+1)+n where p is the smallest prime > n-1.
1
1, 3, 5, 13, 9, 31, 13, 2409, 521, 91, 21, 133, 25, 28575, 2759, 241, 33, 307, 37, 130341, 8021, 463, 45, 148035913, 7962649, 390651, 17603, 757, 57, 871, 61, 887503713, 33554465, 1185955, 39339, 1261, 73, 1874199, 54911, 1561, 81, 1723, 85, 3418845
OFFSET
1,2
FORMULA
a(n)=A171228(n)+A000027(n).
EXAMPLE
a(1)=(1-1)^(2-1+1)+1=1, a(2)=(2-1)^(2-2+1)+2=3, a(3)=(3-1)^(3-3+1)+3=5.
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Definition and examples corrected by R. J. Mathar, May 22 2010
STATUS
approved