A110567 a(n) = n^(n+1) + 1.
1, 2, 9, 82, 1025, 15626, 279937, 5764802, 134217729, 3486784402, 100000000001, 3138428376722, 106993205379073, 3937376385699290, 155568095557812225, 6568408355712890626, 295147905179352825857, 14063084452067724991010
Offset: 0
Examples
Examples illustrating the Comment: a(2) = 9 because the first positive integer (base 2) with a block of 2 consecutive zeros is 100 (base 2) = 4, and the 2nd is 1001 (base 2) = 9 = 1 + 2^3. a(3) = 82 because the first positive integer (base 3) with a block of 3 consecutive zeros is 1000 (base 3) = 81, the 2nd is 2000 (base 3) = 54 and the 3rd is 10001 (base 3) = 82 = 1 + 3^4. a(4) = 1025 because the first positive integer (base 4) with a block of 4 consecutive zeros is 10000 (base 4) = 256, the 2nd is 20000 (base 4) = 512, the 3rd is 30000 (base 4) = 768 and the 4th 100001 (base 4) = 1025 = 1 + 4^5. and the 2nd is 1001 (base 2) = 9 = 1 + 2^3.
Links
- G. C. Greubel, Table of n, a(n) for n = 0..385
Crossrefs
Programs
-
Magma
[n^(n+1) + 1: n in [0..25]]; // G. C. Greubel, Oct 16 2017
-
Mathematica
Table[n^(n+1)+1,{n,0,30}] (* Harvey P. Dale, Oct 30 2015 *)
-
PARI
for(n=0,25, print1(1 + n^(n+1), ", ")) \\ G. C. Greubel, Aug 31 2017
Formula
a(n) = A007778(n) + 1.
a(n) = A110567(n) for n > 1. - Georg Fischer, Oct 20 2018
Extensions
Entry revised by N. J. A. Sloane, Oct 20 2018 at the suggestion of Georg Fischer.
Comments