OFFSET
1,6
COMMENTS
Beginning with a(3)=0, the sequence is an application of the triangle inequality for non-degenerate scalene triangles with longest side = prime(n), middle side = q, and shortest side = p. To wit: the number of such triangles that can be formed with longest side = prime(n). - Gil Broussard, Jun 15 2022
EXAMPLE
A000040(7)=17: a(7) = #((7,11),(5,13),(7,13),(11,13)) = 4.
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Mar 06 2008
STATUS
approved