login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 60th year, we have over 367,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A334044 a(1) = 0, and for any n > 1, a(n) is the number of points of the set { (k, a(k)), k = 1..n-2 } that are not visible from the point (n-1, a(n-1)). 2

%I #11 Apr 19 2020 05:21:54

%S 0,0,0,1,0,2,1,0,4,1,1,2,2,2,3,2,3,5,2,6,4,3,3,4,4,7,1,5,5,2,6,5,4,6,

%T 6,9,0,6,9,3,4,7,5,8,5,6,6,10,8,10,7,7,7,5,6,11,6,11,8,6,14,8,8,10,11,

%U 9,8,15,8,12,8,12,11,6,14,8,12,14,10,13,8

%N a(1) = 0, and for any n > 1, a(n) is the number of points of the set { (k, a(k)), k = 1..n-2 } that are not visible from the point (n-1, a(n-1)).

%C For any i and k such that i < k: the point (i, a(i)) is visible from the point (k, a(k)) if there are no j such that i < j < k and the three points (i, a(i)), (j, a(j)), (k, a(k)) are aligned.

%H Rémy Sigrist, <a href="/A334044/b334044.txt">Table of n, a(n) for n = 1..10000</a>

%e For n = 6:

%e - we consider the following points:

%e . . . X .

%e (4,1)

%e X X X . X

%e (1,0) (2,0) (3,0) (5,0)

%e - the points (1,0) and (2,0) are not visible from (5,0)

%e (as they are hidden by (3,0)),

%e - whereas the points (3,0) and (4,1) are visible from (5,0)

%e - hence a(6) = 2.

%o (PARI) g(z) = z/gcd(real(z), imag(z))

%o for (n=1, #a=vector(81), print1 (a[n] = max(0, n-2) - #Set(apply(k -> g((k+a[k]*I)-(n-1+a[n-1]*I)), [1..n-2]))", "))

%Y See A334043 for a similar sequence.

%K nonn

%O 1,6

%A _Rémy Sigrist_, Apr 13 2020

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 December 9 09:12 EST 2023. Contains 367690 sequences. (Running on oeis4.)