This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A082899 a(n) = A082893(n)-A000040(n), that is difference of n-th prime and number closest to it and divisible by n. 1
 0, 1, 1, 1, -1, -1, -3, -3, 4, 1, 2, -1, -2, -1, -2, -5, -8, -7, 9, 9, -10, 9, 9, 7, 3, 3, 5, 5, 7, 7, -3, -3, -5, -3, -9, -7, -9, -11, -11, -13, -15, -13, -19, -17, -17, -15, -23, 17, 18, 21, 22, 21, 24, 19, 18, 17, 16, 19, 18, 19, 22, 17, 8, 9, 12, 13, 4, 3, -2, 1, 2, 1, -2, -3, -4, -3, -4, -7, -6, -9, -14, -11, -16, -13, -14, -13, -14 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,7 COMMENTS n=9:p(9)=23 is between 18 and 27, closer to 27, so a(9)=27-23=+4. LINKS FORMULA a(n)=p[n]-n*floor[(floor(n/2)+p[n])/n], where p[n] is the n-th prime. MATHEMATICA Table[Prime[n]-n*Floor[(Floor[n/2]+Prime[n])/n], {n, 1, 100}] CROSSREFS Cf. A082893-A082901. Sequence in context: A243823 A281141 A078911 * A249491 A245250 A179561 Adjacent sequences:  A082896 A082897 A082898 * A082900 A082901 A082902 KEYWORD sign AUTHOR Labos Elemer, Apr 22 2003 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified April 26 04:55 EDT 2019. Contains 322469 sequences. (Running on oeis4.)