login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A192419 Smallest k such that 1^3, 2^3, 3^3,... n^3 are distinct modulo k. 4

%I #20 May 04 2016 10:36:55

%S 1,2,3,5,5,6,10,10,10,10,11,15,15,15,15,17,17,22,22,22,22,22,23,29,29,

%T 29,29,29,29,30,33,33,33,34,41,41,41,41,41,41,41,46,46,46,46,46,47,51,

%U 51,51,51,53,53,55,55,58,58,58,59,66,66,66,66,66,66,66,69,69,69,71,71,82,82,82,82,82,82,82,82,82,82

%N Smallest k such that 1^3, 2^3, 3^3,... n^3 are distinct modulo k.

%C The discriminator D(3,n).

%C It appears that a(n) ~ n. Is there an explicit formula as for A016726? - _M. F. Hasler_, May 04 2016

%H Harvey P. Dale, <a href="/A192419/b192419.txt">Table of n, a(n) for n = 1..1000</a>

%H P. Moree, H. Roskam, <a href="http://www.fq.math.ca/Scanned/33-4/moree.pdf">On an arithmetical function related to Euler's totient and the discriminator</a>, Fib. Quart. 33 (4) (1995) 332-340

%p dis := proc(j,n) local k,s,i; for k from 1 do s := {} ; for i from 1 to n do s := s union { (i^j) mod k} ;

%p end do: if nops(s) = n then return k; end if; end do: end proc:

%p A192419 := proc(n) dis(3,n) ; end proc:

%t dmk[n_]:=Module[{k=1,res},While[res=Table[PowerMod[i,3,k],{i,n}]; Length[ res]!= Length[Union[res]],k++];k]; Array[dmk,90] (* _Harvey P. Dale_, Jan 28 2013 *)

%o (PARI) A192419(nMax)={my(S=[],a=1);vector(nMax, n, S=concat(S,n^3); while(#Set(S%a)<n, a++); a)} \\ _M. F. Hasler_, May 04 2016

%Y Cf. A016726, A192420.

%K nonn

%O 1,2

%A _R. J. Mathar_, Jun 30 2011

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)