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.

A332053 a(n) is the number of sets modulo n which can be formed by a finite arithmetic sequence, whose complement cannot be formed by a finite arithmetic sequence.

This page as a plain text file.
%I A332053 #29 Oct 06 2024 09:16:35
%S A332053 0,0,0,0,0,12,0,24,18,40,0,120,0,84,90,160,0,270,0,320,168,220,0,672,
%T A332053 100,312,270,616,0,1020,0,800,396,544,350,1656,0,684,546,1680,0,1932,
%U A332053 0,1496,1260,1012,0,3168,294,1850,918,2080,0,3132,770,3136
%N A332053 a(n) is the number of sets modulo n which can be formed by a finite arithmetic sequence, whose complement cannot be formed by a finite arithmetic sequence.
%F A332053 a(n) = n*(sigma(n) - tau(n) - n + (n mod 2)) for n > 2.
%F A332053 a(p) = 0 for all primes p.
%e A332053 One example of such a set would be {0, 2, 4} mod 8. This set can be formed by starting with 0 and adding 2 twice. However, the set's complement, {1, 3, 5, 6, 7} mod 8, cannot be formed by any arithmetic sequence without including the original set.
%o A332053 (PARI) a(n)={if(n<=2, 0, n*(sigma(n) - numdiv(n) - n + n%2))} \\ _Andrew Howroyd_, Mar 05 2020
%Y A332053 Cf. A000005 (tau), A000203 (sigma).
%K A332053 nonn
%O A332053 1,6
%A A332053 _Brian Barsotti_, Mar 04 2020
%E A332053 Terms a(31) and beyond from _Andrew Howroyd_, Mar 05 2020
%E A332053 a(20) corrected by _Georg Fischer_, Oct 06 2024