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!)
A351782 a(n) = n-2 if n is a multiple of 4, a(n) = n-1 otherwise. 1
0, 1, 2, 2, 4, 5, 6, 6, 8, 9, 10, 10, 12, 13, 14, 14, 16, 17, 18, 18, 20, 21, 22, 22, 24, 25, 26, 26, 28, 29, 30, 30, 32, 33, 34, 34, 36, 37, 38, 38, 40, 41, 42, 42, 44, 45, 46, 46, 48, 49, 50, 50, 52, 53, 54, 54, 56, 57, 58, 58, 60, 61, 62, 62, 64, 65, 66, 66, 68, 69 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
a(n) is the rank of the walk matrix of the Dynkin graph Dn, a tree obtained from the path of order n-1 by adding a pendant edge at the second vertex. see Wang et al.
LINKS
Wei Wang, Chuanming Wang, and Songlin Guo, On the walk matrix of the Dynkin graph Dn, arXiv:2202.13279 [math.CO], 2022.
FORMULA
From Wesley Ivan Hurt, Mar 03 2022: (Start)
a(n) = n - 2 + sign(n mod 4).
a(n) = n - 1 - A121262(n). (End)
MATHEMATICA
a[n_] := If[Divisible[n, 4], n - 2, n - 1]; Array[a, 70] (* Amiram Eldar, Mar 03 2022 *)
PROG
(PARI) a(n) = if (n%4, n-1, n-2);
(Python)
def A351782(n): return n - 1 - int(n % 4 == 0) # Chai Wah Wu, Mar 04 2022
CROSSREFS
Cf. A121262.
Sequence in context: A263433 A147806 A338228 * A064574 A059015 A325108
KEYWORD
nonn,easy
AUTHOR
Michel Marcus, Mar 03 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 June 16 07:19 EDT 2024. Contains 373423 sequences. (Running on oeis4.)