login

Revision History for A227621

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
The nearest integer of perimeter of T-square (fractal) after n-iterations, starting with a unit square.
(history; published version)
#19 by Joerg Arndt at Sat Dec 12 13:15:09 EST 2015
STATUS

proposed

approved

#18 by Jon E. Schoenfield at Sat Dec 12 13:11:33 EST 2015
STATUS

editing

proposed

#17 by Jon E. Schoenfield at Sat Dec 12 13:11:28 EST 2015
COMMENTS

The round (nearest) function uses the convention that values half-way halfway between two integers are rounded up, so a(4) = 37 = round(36 + 1/2).

EXAMPLE

The central unit square has perimeter 4. At n=1, the additional 4 squares hide 4*1/2 = 2 units of length and add 4*3*1/2 = 6 units, to give a(1) = 4 - 2 + 6 = 8.

At n=2, the additional 12 squares hide 12*1/(2*2) units of length and add 12*3*1/(2*2) to give a(2) = 8 - 12/4 + 36/4 = 14.

CROSSREFS

Cf. A083313.

STATUS

approved

editing

#16 by Ralf Stephan at Fri Aug 02 04:24:03 EDT 2013
STATUS

reviewed

approved

#15 by R. J. Mathar at Thu Aug 01 14:07:18 EDT 2013
STATUS

proposed

reviewed

#14 by R. J. Mathar at Thu Aug 01 14:06:29 EDT 2013
STATUS

editing

proposed

#13 by R. J. Mathar at Thu Aug 01 13:48:08 EDT 2013
EXAMPLE

The central unit square has perimeter 4. At n=1, the additional 4 squares hide 4*1/2=2 units of length and add 4*3*1/2=6 units, to give a(1) = 4-2+6 = 8.

At n=2, the additional 12 squares hide 12*1/(2*2) units of length and add 12*3*1/(2*2) to give a(2)=8-12/4+36/4=14.

MAPLE

A227621 := proc(n)

if n = 0 then 4

else

round(A083313(n)/2^(n-3)) ;

end if;

end proc: # R. J. Mathar, Aug 01 2013

#12 by R. J. Mathar at Thu Aug 01 13:26:52 EDT 2013
DATA

4, 18, 8, 14, 23, 36, 37, 57, 87, 133, 201, 304, 457, 688, 1034, 1553, 2331, 3499, 5251, 7878, 11819, 17731, 26598, 39899, 59851, 89778, 134669, 202005, 303010, 454517, 681778, 1022668, 1534004, 2301009, 3451515, 5177275, 7765914

COMMENTS

The round (nearest) function uses the convention that values half-way between two integers are rounded up, so a(4) = 37 = round(36 +1/2).

STATUS

proposed

editing

#11 by Kival Ngaokrajang at Fri Jul 26 10:13:26 EDT 2013
STATUS

editing

proposed

#10 by Kival Ngaokrajang at Fri Jul 26 09:41:20 EDT 2013
DATA

4, 18, 14, 23, 37, 36, 57, 87, 133, 201, 304, 457, 688, 1034, 1553, 2331, 3499, 5251, 7878, 11819, 17731, 26598, 39899, 59851, 89778, 134669, 202005, 303010, 454517, 681778, 1022668, 1534004, 2301009, 3451515, 5177275

FORMULA

a(n) = round(x(n)); x(0) = 4, ; for n >= 1, xa(n) = x(n-1)+ 8*round(3^A083313(n-1)/2^(n-3)).

PROG

(Small Basic)

a[0]=4

For n = 0 To 51

a[n+1] = Math.Round((Math.Power(3, n+1) - Math.Power(2, n))/Math.Power(2, n-2))

TextWindow.Write(a[n]+", ")

EndFor

CROSSREFS

Cf. A083313

Discussion
Fri Jul 26
10:12
Kival Ngaokrajang: Thank you for suggestion. As I check in wikipedia, it comply to "Nearest integer function" according to IEEE 754. Also, Small Basic program "round" function gives the same result a[4]=36.
I corrected a(n) = round(A083313(n)/2^(n-3)) which is more concise. Please consider.