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!)
A049795 a(n) = T(n,n-3), array T as in A049790. 7
1, 2, 3, 4, 7, 14, 18, 29, 35, 49, 57, 74, 84, 105, 115, 140, 155, 180, 195, 228, 244, 278, 296, 332, 356, 397, 416, 460, 487, 534, 559, 612, 637, 691, 722, 779, 814, 872, 901, 968, 1007, 1073, 1107, 1180, 1218, 1292, 1333, 1407 (list; graph; refs; listen; history; text; internal format)
OFFSET
4,2
LINKS
MAPLE
seq( `if`(n<7, n-3, add(floor((n-3)/floor((n-6)/j)), j=1..n-6)), n=4..60); # G. C. Greubel, Dec 10 2019
MATHEMATICA
Table[If[n<7, n-3, Sum[Floor[(n-3)/Floor[(n-6)/j]], {j, n-6}]], {n, 4, 60}] (* G. C. Greubel, Dec 10 2019 *)
PROG
(PARI) a(n) = if(n<7, n-3, sum(j=1, n-6, (n-3)\((n-6)\j)) );
vector(60, n, a(n+3) ) \\ G. C. Greubel, Dec 10 2019
(Magma) [n lt 7 select n-3 else (&+[Floor((n-3)/Floor((n-6)/j)): j in [1..n-6]]): n in [4..60]]; // G. C. Greubel, Dec 10 2019
(Sage)
def a(n):
if (n<7): return n-3
else: return sum(floor((n-3)/floor((n-6)/j)) for j in (1..n-6))
[a(n) for n in (4..60)] # G. C. Greubel, Dec 10 2019
(GAP)
a:= function(n)
if n<7 then return n-3;
else return Sum([1..n-6], j-> Int((n-3)/Int((n-6)/j)) );
fi; end;
List([4..60], n-> a(n) ); # G. C. Greubel, Dec 10 2019
CROSSREFS
Sequence in context: A270440 A000690 A049876 * A329111 A014251 A290992
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 June 21 10:48 EDT 2024. Contains 373544 sequences. (Running on oeis4.)