cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A292268 Compound filter (multiplicative order of 2 mod 2n+1 & number of trailing 1's in binary expansion of 2n+1): a(n) = P(A002326(n), A007814(2n+2)), where P(n,k) is sequence A000027 used as a pairing function.

This page as a plain text file.
%I A292268 #6 Oct 02 2017 18:59:00
%S A292268 1,5,10,13,21,65,78,25,36,189,21,89,210,189,406,41,55,90,666,103,210,
%T A292268 119,78,348,231,44,1378,251,171,1769,1830,61,78,2277,253,701,45,230,
%U A292268 465,900,1485,3485,36,463,66,90,55,816,1176,495,5050,1429,78,5777,666,777,406,1034,78,349,6105,230,5050,85,105,8645,171,739,2346,9729,1081
%N A292268 Compound filter (multiplicative order of 2 mod 2n+1 & number of trailing 1's in binary expansion of 2n+1): a(n) = P(A002326(n), A007814(2n+2)), where P(n,k) is sequence A000027 used as a pairing function.
%H A292268 Antti Karttunen, <a href="/A292268/b292268.txt">Table of n, a(n) for n = 0..10000</a>
%F A292268 a(n) = (1/2)*(2 + ((A002326(n) + A007814(2n+2))^2) - A002326(n) - 3*A007814(2n+2)).
%o A292268 (PARI)
%o A292268 A002326(n) = if(n<0, 0, znorder(Mod(2, 2*n+1))); \\ This function from _Michael Somos_, Mar 31 2005
%o A292268 A007814(n) = valuation(n,2);
%o A292268 A292268(n) = (1/2)*(2 + ((A002326(n)+A007814(2*(1+n)))^2) - A002326(n) - 3*A007814(2*(1+n)));
%o A292268 (Scheme) (define (A292268 n) (* 1/2 (+ (expt (+ (A002326 n) (A007814 (+ 2 n n))) 2) (- (A002326 n)) (- (* 3 (A007814 (+ 2 n n)))) 2)))
%Y A292268 Cf. A000027, A002326, A007814, A292267 (rgs-version of this filter).
%Y A292268 Cf. also A291755, A292249.
%K A292268 nonn
%O A292268 0,2
%A A292268 _Antti Karttunen_, Oct 02 2017