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!)
A308112 Total number of nodes summed over all lattice paths from (0,0) to (n,n) that consist of steps (h,v) with min(h,v) > 0 and gcd(h,v) = 1. 3

%I #19 Apr 05 2021 09:17:37

%S 1,2,3,10,47,186,703,2640,9979,37980,144713,550666,2093215,7951524,

%T 30186737,114522342,434172249,1644889496,6227677911,23563691408,

%U 89104756279,336752825864,1271998719875,4802187032270,18120902471019,68347041380528,257673014416775

%N Total number of nodes summed over all lattice paths from (0,0) to (n,n) that consist of steps (h,v) with min(h,v) > 0 and gcd(h,v) = 1.

%H Alois P. Heinz, <a href="/A308112/b308112.txt">Table of n, a(n) for n = 0..550</a>

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Lattice_path#Counting_lattice_paths">Counting lattice paths</a>

%F a(n) mod 2 = 1 - (n mod 2) = A059841(n).

%F a(n) ~ c * d^n * sqrt(n), where d = 3.7137893481485186502229788321701955452444... and c = 0.0685686817861124238901083560487601593693... - _Vaclav Kotesovec_, May 24 2019

%p b:= proc(x, y) option remember; `if`(y=0, [1$2],

%p (p-> p +[0, p[1]])(add(add(`if`(igcd(h, v)=1,

%p b(sort([x-h, y-v])[]), 0), v=1..y), h=1..x)))

%p end:

%p a:= n-> b(n$2)[2]:

%p seq(a(n), n=0..30);

%t f[p_List] := p + {0, p[[1]]}; f[0] = 0;

%t b[{x_, y_}] := b[{x, y}] = If[y == 0, {1, 1},

%t f[Sum[Sum[If[GCD[h, v] == 1,

%t b[Sort[{x-h, y-v}]], {0, 0}], {v, 1, y}], {h, 1, x}]]];

%t a[n_] := b[{n, n}][[2]];

%t a /@ Range[0, 30] (* _Jean-François Alcover_, Apr 05 2021, after _Alois P. Heinz_ *)

%Y Cf. A059841, A308087, A308114.

%K nonn

%O 0,2

%A _Alois P. Heinz_, May 13 2019

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 3 08:06 EDT 2024. Contains 372206 sequences. (Running on oeis4.)