PDF ArchiveHistorical archive . public document

foobar2.2

foobar2.2.pdf . by Asaf Amnony;aamnony@gmail.com

PDF 1.5 1 page 202.27 KB Filed 24/12/2016
Download this PDF
foobar2.2.pdf
Web reader . 1 page
Page 1 of 1, foobar2.2

File preview

With the given coordinates (𝑥, 𝑦) ∈ {1,2,3, … }×{0,1,2, … }, let's define the ID value of the cell (𝑥, 𝑦) with the following function: 𝑓(𝑥, 𝑦) = 𝑓(𝑥 − 1, 𝑦) + (𝑥 − 1) + 𝑦 Let's find a closed form for the function 𝑓(𝑥, 𝑦): 𝑔(𝑦) ≜ 𝑓(1, 𝑦) 𝑓(2, 𝑦) = 𝑓(1, 𝑦) + 1 + 𝑦 = 𝑎 + 1 + 𝑦 2 𝑓(3, 𝑦) = 𝑓(2, 𝑦) + 2 + 𝑦 = 𝑔(𝑦) + 1 + 𝑦 + 2 + 𝑦 = 𝑔(𝑦) + 2𝑦 + ∑ 𝑛 𝑛=1 3 𝑓(4, 𝑦) = 𝑓(4, 𝑦) + 3 + 𝑦 = 𝑔(𝑦) + 1 + 𝑦 + 2 + 𝑦 + 3 + 𝑦 = 𝑔(𝑦) + 3𝑦 + ∑ 𝑛 𝑛=1 ⋮ 𝑥−1 𝑓(𝑥, 𝑦) = 𝑔(𝑦) + (𝑥 − 1)𝑦 + ∑ 𝑛 𝑛=1 Where: 𝑔(𝑦) = 𝑓(1, 𝑦) = 𝑓(1, 𝑦 − 1) + (𝑦 − 1) = 𝑔(𝑦 − 1) + (𝑦 − 1) Let's find a closed form for the function 𝑔(𝑦): 𝑔(2) = 𝑔(1) + 1 𝑔(3) = 𝑔(2) + 2 = 𝑔(1) + 1 + 2 𝑔(4) = 𝑔(3) + 3 = 𝑔(1) + 1 + 2 + 3 ⋮ 𝑦−1 𝑦−1 𝑔(𝑦) = 𝑔(1) + ∑ 𝑛 = 1 + ∑ 𝑛 𝑛=1 𝑛=1 Therefore: 𝑥−1 𝑦−1 𝑓(𝑥, 𝑦) = 1 + (𝑥 − 1)𝑦 + ∑ 𝑛 + ∑ 𝑛 𝑛=1 𝑛=1 Where: 𝑥−1 ∑𝑛 = 𝑛=1 (𝑥 − 1)(𝑥 − 2) 1 2 3 = 𝑥 − 𝑥+1 2 2 2 So finally we get: 𝑓(𝑥, 𝑦) = 1 + 𝑥𝑦 − 𝑦 + 0.5𝑥 2 − 1.5𝑥 + 1 + 0.5𝑦 2 − 1.5𝑦 + 1 𝑥 2 + 𝑦 2 + 2𝑥𝑦 − 3𝑥 − 5𝑦 + 6 𝑓(𝑥, 𝑦) = 2

Download foobar2.2

foobar2.2.pdf . PDF . 202.27 KB . 1 page

Download PDF

File information

File name
foobar2.2.pdf
Title
aamnony@gmail.com
Author
Asaf Amnony;aamnony@gmail.com
Size
202.27 KB
Pages
1 page
PDF version
1.5
Produced with
Microsoft® Word 2016
Filed on
24/12/2016
Page views
544
Document ID
foobar2-2
MD5
02c513b7ff34dee1511005712505b161
SHA-512
31c0e0f8e9ec447576c2f89e8b5fda2955f8f9dee7ee58d985b0c8bf8ca1255d504d190ce6bee1dfb4fbeb7945a64098e4a0cc9b96c7dd36a681879b44de3da7

Share this document

This address never changes. It is the one to keep, to send, or to cite.

Shorter, for a text message or a post with a character limit.

To link to this document from a website or a blog.