1,2

The discriminator of a sequence is the least positive integer k such that the first n terms of the sequence are pairwise incongruent, modulo k.

We start A000312 with 1^1 = 1 (and not 0^0).

Table of n, a(n) for n=1..68.

Cf. A000312.

Sequence in context: A334284 A193850 A140119 * A193846 A255908 A341107

Adjacent sequences: A273065 A273066 A273067 * A273069 A273070 A273071

nonn

Jeffrey Shallit, May 14 2016

approved