The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A049787 a(n) = T(n,n-2), array T as in A049783. 7
0, 0, 0, 0, 2, 2, 3, 4, 3, 4, 8, 4, 8, 8, 10, 5, 13, 9, 16, 10, 12, 13, 20, 11, 16, 16, 20, 17, 27, 13, 26, 20, 25, 24, 32, 12, 30, 26, 34, 24, 40, 19, 38, 30, 33, 34, 47, 26, 41, 33, 43, 33, 55, 38, 53, 33, 40, 41, 66, 30, 58, 48, 55, 42, 58 (list; graph; refs; listen; history; text; internal format)
OFFSET
3,5
LINKS
FORMULA
a(n) = Sum_{j=1..n-4} mod(n-2, floor((n-4)/j)). - G. C. Greubel, Dec 12 2019
MAPLE
seq( add(`mod`(n-2, floor((n-4)/j)), j=1..n-4), n=3..70); # G. C. Greubel, Dec 12 2019
MATHEMATICA
Table[Sum[Mod[n-2, Floor[(n-4)/j]], {j, n-4}], {n, 3, 70}] (* G. C. Greubel, Dec 12 2019 *)
PROG
(PARI) vector(70, n, sum(j=1, n-2, lift(Mod(n, (n-2)\j))) ) \\ G. C. Greubel, Dec 12 2019
(Magma) [ n lt 5 select 0 else &+[((n-2) mod Floor((n-4)/j)): j in [1..n-4]]: n in [3..70]]; // G. C. Greubel, Dec 12 2019
(Sage) [sum( (n-2)%floor((n-4)/j) for j in (1..n-4)) for n in (3..70)] # G. C. Greubel, Dec 12 2019
(GAP) List([3..70], n-> Sum([1..n-4], j-> (n-2) mod Int((n-4)/j)) ); # G. C. Greubel, Dec 12 2019
CROSSREFS
Sequence in context: A235804 A051597 A084193 * A084192 A129595 A094508
KEYWORD
nonn
AUTHOR
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 May 21 22:16 EDT 2024. Contains 372741 sequences. (Running on oeis4.)