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!)
A344973 a(n) = A344875(n) mod A011772(n). 10

%I #15 Jun 20 2021 19:19:22

%S 0,0,0,0,0,0,0,0,0,0,0,6,0,4,3,0,0,0,0,13,0,8,0,0,0,0,0,0,0,9,0,0,9,0,

%T 10,0,0,16,0,0,0,16,0,6,5,20,0,30,0,0,15,6,0,24,0,42,0,0,0,11,0,28,21,

%U 0,23,5,0,0,21,12,0,57,0,0,0,14,18,0,0,60,0,0,0,36,30,40,27,22,0,26,7,16,0,44,15,0,0,0,36

%N a(n) = A344875(n) mod A011772(n).

%H Antti Karttunen, <a href="/A344973/b344973.txt">Table of n, a(n) for n = 1..11264</a>

%H Antti Karttunen, <a href="/A344973/a344973.txt">Data supplement: n, a(n) computed for n = 1..65537</a>

%F a(n) = A344875(n) mod A011772(n) = A344876(n) mod A011772(n).

%t b[n_] := If[n == 1, 1, Module[{p, e}, Product[{p, e} = pe;

%t If[p == 2, 2^(1 + e) - 1, p^e - 1], {pe, FactorInteger[n]}]]];

%t c[n_] := Module[{m = 1}, While[Not[IntegerQ[m (m + 1)/(2 n)]], m++]; m];

%t a[n_] := Mod[b[n], c[n]];

%t Array[a, 100] (* _Jean-François Alcover_, Jun 12 2021 *)

%o (PARI)

%o A011772(n) = { if(n==1, return(1)); my(f=factor(if(n%2, n, 2*n)), step=vecmax(vector(#f~, i, f[i, 1]^f[i, 2]))); forstep(m=step, 2*n, step, if(m*(m-1)/2%n==0, return(m-1)); if(m*(m+1)/2%n==0, return(m))); }; \\ From A011772

%o A344875(n) = { my(f=factor(n)~); prod(i=1, #f, (f[1, i]^(f[2, i]+(2==f[1, i]))-1)); };

%o A344973(n) = (A344875(n)%A011772(n));

%Y Cf. A011772, A344875, A344876, A344969, A344970, A344971, A344972.

%Y Cf. A344974 (positions of zeros).

%K nonn

%O 1,12

%A _Antti Karttunen_, Jun 04 2021

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 25 04:42 EDT 2024. Contains 371964 sequences. (Running on oeis4.)