Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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!)
A293899 Number of proper divisors of the form 3k+1 minus number of proper divisors of the form 3k+2. 4
0, 1, 1, 0, 1, 0, 1, 1, 1, -1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 2, -1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 0, -1, 1, 1, 1, 1, 2, -1, 1, 0, 1, 1, 0, -1, 1, 1, 2, 1, 0, 1, 1, 0, -1, 1, 2, -1, 1, 0, 1, 1, 2, 0, 1, 0, 1, 1, 0, -1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, -1, 1, 2, -1, 1, 0, -1, 1, 0, 3, 1, 2, -1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,21
LINKS
FORMULA
When n = 3k, a(n) = A002324(n), when n = 3k+1, a(n) = A002324(n) - 1, when n = 3k+2, a(n) = A002324(n) + 1.
a(n) = A002324(n) - A010872(n) (mod 3).
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = Pi/(3*sqrt(3)) = 0.604599... (A073010). - Amiram Eldar, Nov 25 2023
MATHEMATICA
Table[DivisorSum[n, 1 &, And[Mod[#, 3] == 1, # != n] &] - DivisorSum[n, 1 &, And[Mod[#, 3] == 2, # != n] &], {n, 105}] (* Michael De Vlieger, Nov 08 2017 *)
Table[Total[Which[Mod[#, 3]==1, 1, Mod[#, 3]==2, -1, True, 0]&/@Most[ Divisors[ n]]], {n, 110}] (* Harvey P. Dale, Nov 26 2021 *)
PROG
(PARI)
A293895(n) = sumdiv(n, d, (d<n)*(1==(d%3)));
A293896(n) = sumdiv(n, d, (d<n)*(2==(d%3)));
A293899(n) = (A293895(n) - A293896(n));
CROSSREFS
Sequence in context: A204244 A083093 A334621 * A015794 A011650 A016357
KEYWORD
sign,easy
AUTHOR
Antti Karttunen, Nov 06 2017
STATUS
approved

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 August 18 23:05 EDT 2024. Contains 375284 sequences. (Running on oeis4.)