OFFSET
1,1
COMMENTS
Sequence with chaotic first differences; minimal values a(n)-a(n-1)=2 occur when prime(n) ==1 mod 10 and a(n-1) is lesser of twin primes (and a(n) the larger of twin primes); corresponding n's are 42, 81, 109, 114, 151, 159, 166, 172, 232, 239, 334, 343, 369, 398, 431, 522, 537, 574, 584, 651, 661, 672, 763, 770, 851, 858, 869, 872, 895, 942.
EXAMPLE
n=2: prime(2)=3, A=(prime(n) mod 10)=3; a(n-1)=2, B=pi(a(n-1))=1; prime(A+B)=prime(3+1)=7 => a(2)=7;
n=3: A=4; B=5; prime(9)=23 => a(3)=23.
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Sep 24 2011
EXTENSIONS
Typos in sequence name and comments fixed by Zak Seidov, Nov 01 2011
STATUS
approved