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!)
A359329 Number of diagonals in a regular polygon with n sides not passing through the center. 1
0, 0, 5, 6, 14, 16, 27, 30, 44, 48, 65, 70, 90, 96, 119, 126, 152, 160, 189, 198, 230, 240, 275, 286, 324, 336, 377, 390, 434, 448, 495, 510, 560, 576, 629, 646, 702, 720, 779, 798, 860, 880, 945, 966, 1034, 1056, 1127, 1150, 1224, 1248, 1325, 1350, 1430, 1456, 1539, 1566, 1652, 1680 (list; graph; refs; listen; history; text; internal format)
OFFSET
3,3
LINKS
FORMULA
If n is odd, a(n) = (n^2 - 3*n)/2; if n is even, a(n) = (n^2 - 4*n)/2.
a(n) = A000096(n-3) - A142150(n-3).
G.f.: x^5*(5 + x - 2*x^2)/((1 - x)^3*(1 + x)^2). - Stefano Spezia, Jan 04 2023
PROG
(Python)
def A359329(n): return (n*(n-4)+n*(n&1))>>1 # Chai Wah Wu, Jan 23 2023
CROSSREFS
A014106 and A054000 interleaved.
Sequence in context: A289895 A335785 A266304 * A308839 A099330 A322479
KEYWORD
nonn,easy
AUTHOR
Luk De Clercq, Dec 26 2022
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 April 30 17:37 EDT 2024. Contains 372139 sequences. (Running on oeis4.)