0,5

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.

Table of n, a(n) for n=0..90.

A. Karttunen and J. Moyer, C-program for computing the initial terms of this sequence

a(n)=A095270(n)+1 modulo A004767(n). Cf. A095109, A095271 (same sequence with zeros removed).

Sequence in context: A035678 A094518 A123074 * A308275 A308254 A111417

Adjacent sequences: A095266 A095267 A095268 * A095270 A095271 A095272

nonn

Antti Karttunen and Jun 01 2004

approved