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!)
A242394 Number of equilateral triangles (sides length = 1) that intersect the circumference of a circle of radius n centered at (0,0). 4

%I #13 May 18 2014 11:13:02

%S 6,18,30,42,54,66,66,102,114,126,138,150,150,162,198,210,222,234,222,

%T 270,258,294,306,318,330,330,366,354,390,402,390,426,450,462,450,486,

%U 474,486,510,546,558,546,558,594,606,630,642,654,618,678,690,690,726,738,750,738,750

%N Number of equilateral triangles (sides length = 1) that intersect the circumference of a circle of radius n centered at (0,0).

%C For all n, there are at least 6 points where the transit of circumference occurs exactly at the corners. The rare case is when the transit occurs at 2 corners of a triangle, i.e., at n = 1, 13, 181, 35113, ... , (A001570(n)). The pattern repeats itself at every Pi/3 sector along the circumference. The triangle count per half sector by rows can be arranged as an irregular triangle as shown in the illustration. The rows count (A242396) is equal to the case centered at (1/2,0), A242395.

%H Kival Ngaokrajang, <a href="/A242394/a242394_2.pdf">Illustration of initial terms</a>

%H Kival Ngaokrajang, <a href="/A242394/a242394_1.pdf">Illustration for rare cases</a>

%o (Small Basic)

%o For n =1 To 100

%o r6=n*math.Sin(30*Math.Pi/180)/(Math.Power(3,0.5)/2)

%o r6a=math.Round(r6)

%o If r6-math.Floor(r6) >0.5 Then

%o last=1

%o Else

%o last=2

%o EndIf

%o 'find corner intersecting points-----------------------

%o k=0

%o ic=0

%o h=Math.Power(1-0.5*0.5,0.5)

%o c=math.Floor(n/h)

%o For i = h To c Step h

%o For j = 0.5 To n Step 0.5

%o r=Math.Power(i*i+j*j,0.5)

%o If r = n Then

%o k=k+1

%o EndIf

%o EndFor

%o EndFor

%o if k > 1 then

%o ic=math.Floor(k/3)

%o EndIf

%o '------------------------------------------------------

%o a=0

%o b=0

%o For ii=1 To r6a

%o If ii=1 Then

%o a=a+1

%o Else

%o If ii = r6a Then

%o a=a+last

%o Else

%o a=a+2

%o EndIf

%o EndIf

%o b=a

%o EndFor

%o if n =1 then

%o aa = 1

%o Else

%o aa =1*(a-2*ic)*2+1

%o endif

%o TextWindow.Write(6*aa+", ")

%o EndFor

%Y Cf. A001570, A242118.

%K nonn

%O 1,1

%A _Kival Ngaokrajang_, May 13 2014

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 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)