login
A095269
Diving index of 4n+3.
5
0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 3, 0, 10, 0, 0, 0, 3, 0, 0, 0, 0, 0, 3, 0, 10, 0, 7, 0, 3, 0, 7, 7, 0, 0, 3, 0, 8, 0, 8, 0, 3, 0, 0, 0, 11, 0, 3, 0, 34, 0, 8, 19, 3, 0, 10, 13, 61, 0, 3, 0, 0, 7, 0, 0, 3, 0, 7, 0, 8, 0, 3, 0, 10, 0, 0, 0, 3, 0, 32, 0, 7, 0, 3, 0, 58, 0, 7, 0, 3, 0, 0
OFFSET
0,5
COMMENTS
Diving index of an odd number n is the first integer u > 1 where Sum_{i=1..u} J(i/n) results -1 and zero if never. Here J(i/n) is Jacobi symbol of i and n, which reduces to a Legendre symbol L(i/n) when n is a prime.
FORMULA
a(n) = A095270(n)+1 modulo A004767(n).
CROSSREFS
Cf. A004767, A095270, A095109, A095271 (same sequence with zeros removed).
Sequence in context: A035678 A094518 A123074 * A356302 A308275 A308254
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 01 2004
STATUS
approved