<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Musings</title><link href="https://web.zvr.gr/" rel="alternate"></link><link href="https://web.zvr.gr/feeds/all.atom.xml" rel="self"></link><id>https://web.zvr.gr/</id><updated>2023-11-22T00:00:00+01:00</updated><subtitle>Too many interests, too little time</subtitle><entry><title>58</title><link href="https://web.zvr.gr/bday-58.html" rel="alternate"></link><published>2023-11-22T00:00:00+01:00</published><updated>2023-11-22T00:00:00+01:00</updated><author><name>zvr</name></author><id>tag:web.zvr.gr,2023-11-22:/bday-58.html</id><summary type="html">&lt;p class="first last"&gt;58th&amp;nbsp;birthday&lt;/p&gt;
</summary><content type="html">&lt;img alt="" src="https://web.zvr.gr/images/58.png" style="width: 1024px; height: 1024px;" /&gt;
&lt;p&gt;111010₂ = 2011₃ = 322₄ = 213₅ = 134₆ = 112₇ = 72₈ = 64₉ = 58₁₀ = 53₁₁ = 4a₁₂ = 46₁₃ = 42₁₄ = 3d₁₅ = 3a₁₆ = 37₁₇ = 34₁₈ = 31₁₉ = 2i₂₀ = 2g₂₁ = 2e₂₂ = 2c₂₃ = 2a₂₄ = 28₂₅ = 26₂₆ = 24₂₇ = 22₂₈ = 20₂₉ = 1s₃₀ = 1r₃₁ = 1q₃₂ = 1p₃₃ = 1o₃₄ = 1n₃₅ = 1m₃₆ = 1l₃₇ = 1k₃₈ = 1j₃₉ = 1i₄₀ = 1h₄₁ = 1g₄₂ = 1f₄₃ = 1e₄₄ = 1d₄₅ = 1c₄₆ = 1b₄₇ = 1a₄₈ = 19₄₉ = 18₅₀ = 17₅₁ = 16₅₂ = 15₅₃ = 14₅₄ = 13₅₅ = 12₅₆ = 11₅₇ =&amp;nbsp;10₅₈&lt;/p&gt;
&lt;p&gt;[image generated by &lt;span class="caps"&gt;AI&lt;/span&gt;]&lt;/p&gt;
</content><category term="dates"></category><category term="math"></category><category term="date"></category></entry><entry><title>57</title><link href="https://web.zvr.gr/bday-57.html" rel="alternate"></link><published>2022-11-22T00:00:00+01:00</published><updated>2022-11-22T00:00:00+01:00</updated><author><name>zvr</name></author><id>tag:web.zvr.gr,2022-11-22:/bday-57.html</id><summary type="html">&lt;p class="first last"&gt;57th&amp;nbsp;birthday&lt;/p&gt;
</summary><content type="html">&lt;img alt="" src="https://web.zvr.gr/images/57.png" style="width: 1677px; height: 2000px;" /&gt;
</content><category term="dates"></category><category term="date"></category></entry><entry><title>56</title><link href="https://web.zvr.gr/bday-56.html" rel="alternate"></link><published>2021-11-22T00:00:00+01:00</published><updated>2021-11-22T00:00:00+01:00</updated><author><name>zvr</name></author><id>tag:web.zvr.gr,2021-11-22:/bday-56.html</id><summary type="html">&lt;p class="first last"&gt;56th&amp;nbsp;birthday&lt;/p&gt;
</summary><content type="html">&lt;img alt="" src="https://web.zvr.gr/images/56.png" style="width: 800px; height: 600px;" /&gt;
&lt;p&gt;Sum of six consecutive primes (3 + 5 + 7 + 11 + 13 +&amp;nbsp;17)&lt;/p&gt;
&lt;p&gt;Sum of the first six triangular numbers (1 + 3 + 6 + 10 + 15 +&amp;nbsp;21)&lt;/p&gt;
&lt;p&gt;Sum of the divisors of the first 8 positive&amp;nbsp;integers&lt;/p&gt;
&lt;p&gt;Maximum determinant in an 8 by 8 matrix of zeroes and&amp;nbsp;ones&lt;/p&gt;
&lt;p&gt;Only known number n such that
φ(n-1)σ(n-1) = φ(n)σ(n) = φ(n+1)σ(n+1),
where φ is Euler&amp;#8217;s totient function
and σ is the sum of the divisor&amp;nbsp;function&lt;/p&gt;
&lt;p&gt;Number of bits in a key used in the Data Encryption&amp;nbsp;Standard&lt;/p&gt;
&lt;p&gt;Number of signatories of United States Declaration of&amp;nbsp;Independence&lt;/p&gt;
&lt;p&gt;Number of curls in Shirley Temple&amp;#8217;s&amp;nbsp;hair&lt;/p&gt;
&lt;p&gt;Much more personal significance,
besides my current age,
the atomic number of barium &amp;#8211;
no wonder I don&amp;#8217;t lose weight!&amp;nbsp;#GreekEtymologyJoke&lt;/p&gt;
&lt;p&gt;[image generated by a 56-line script, using 56 open source&amp;nbsp;fonts]&lt;/p&gt;
</content><category term="dates"></category><category term="math"></category><category term="date"></category></entry><entry><title>Greek flag</title><link href="https://web.zvr.gr/greek-flag.html" rel="alternate"></link><published>2021-03-25T00:00:00+01:00</published><updated>2021-03-25T00:00:00+01:00</updated><author><name>zvr</name></author><id>tag:web.zvr.gr,2021-03-25:/greek-flag.html</id><summary type="html">&lt;p class="first last"&gt;Drawing the Greek flag in &lt;span class="caps"&gt;SVG&lt;/span&gt;&lt;/p&gt;
</summary><content type="html">&lt;p&gt;For the celebrations of the 200 years of the start
of the Greek revolution against the Ottoman empire,
a lot of Greek flags were posted on social&amp;nbsp;media.&lt;/p&gt;
&lt;p&gt;Although the flag is not so simple
like the French or German, for example,
it can easily be constructed by using
the basic drawing primitives of &lt;span class="caps"&gt;SVG&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Trying to draw it by hand-crafted &lt;span class="caps"&gt;SVG&lt;/span&gt; directives,
I thought it would be fun to minimize.
I had never delved into &lt;span class="caps"&gt;SVG&lt;/span&gt; before,
so I had to read the &lt;a class="reference external" href="https://www.w3.org/TR/SVG11/"&gt;specification&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The design of the Greek flag is defined in
a &lt;a class="reference external" href="https://www.lawspot.gr/nomikes-plirofories/nomothesia/n-851-1978/arthron-1-nomos-851-1978-ethniki-simaia"&gt;law&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The result, as minimal as I could make it,&amp;nbsp;was:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&amp;lt;svg xmlns=&amp;quot;http://www.w3.org/2000/svg&amp;quot; viewBox=&amp;quot;0 0 27 18&amp;quot;&amp;gt;
&amp;lt;rect fill=&amp;quot;#005bae&amp;quot; width=&amp;quot;27&amp;quot; height=&amp;quot;18&amp;quot;/&amp;gt;
&amp;lt;path stroke=&amp;quot;#fff&amp;quot; stroke-width=&amp;quot;2&amp;quot; d=&amp;quot;M0,5h10 M5,0v10 M10,3h17 M10,7h17 M0,11h27 M0,15h27&amp;quot;/&amp;gt;
&amp;lt;/svg&amp;gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The &lt;span class="caps"&gt;SVG&lt;/span&gt; in a file
can be found on &lt;a class="reference external" href="https://web.zvr.gr/files/GR_flag.svg"&gt;this document&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Reading the commands,
one can easily see that they create a blue rectangle
(which will serve as background and therefore show all blue parts),
and then draw thick white lines: first the cross
and then the horizontal&amp;nbsp;stripes.&lt;/p&gt;
&lt;p&gt;Obvious, once one sees the final&amp;nbsp;result.&lt;/p&gt;
&lt;div class="section" id="update"&gt;
&lt;h2&gt;Update&lt;/h2&gt;
&lt;p&gt;After publishing the above &lt;span class="caps"&gt;SVG&lt;/span&gt;,
I was challenged by a friend to also animate&amp;nbsp;it.&lt;/p&gt;
&lt;p&gt;I believe &lt;span class="caps"&gt;SVG&lt;/span&gt; is not sufficient for this,
but of course there is no need to use JavaScript.
Some &lt;span class="caps"&gt;CSS&lt;/span&gt; animation primitives were&amp;nbsp;enough.&lt;/p&gt;
&lt;p&gt;I computed the parameters of 24 different positions (&amp;#8220;frames&amp;#8221;)
for an animation loop.
I also drew a flag pole, since it looked very strange without&amp;nbsp;it.&lt;/p&gt;
&lt;p&gt;The final result, which is a single file with no external dependencies,
can be found on &lt;a class="reference external" href="https://web.zvr.gr/files/GR_flag_anim.html"&gt;this link&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
</content><category term="explorations"></category><category term="fun"></category><category term="dev"></category></entry><entry><title>The Anti-N-Queens Problem</title><link href="https://web.zvr.gr/anti-n-queens.html" rel="alternate"></link><published>2021-02-28T00:00:00+01:00</published><updated>2021-04-08T00:00:00+02:00</updated><author><name>zvr</name></author><id>tag:web.zvr.gr,2021-02-28:/anti-n-queens.html</id><summary type="html">&lt;p class="first last"&gt;Determining the maximum number of safe squares on a board with&amp;nbsp;queens&lt;/p&gt;
</summary><content type="html">&lt;p&gt;The N-Queens problem is a well-known problem
and it consists of placing N non-attacking queens
on an NxN chessboard.
It is solvable for any n &amp;gt;&amp;nbsp;3.&lt;/p&gt;
&lt;p&gt;In February 2021,
I explored a related similar problem,
tentatively named Anti-N-Queens.
A simple formulatin of the problem is the&amp;nbsp;following:&lt;/p&gt;
&lt;p&gt;What is the maximum number of &amp;#8220;safe&amp;#8221; squares
when N queens are placed on a&amp;nbsp;board?&lt;/p&gt;
&lt;p&gt;A square on the board is considered safe
when it is not threatened by any queen on the board.
There is no restriction that the queens are not attacking each other,
nor (obviously) that any rule of chess must be&amp;nbsp;followed.&lt;/p&gt;
&lt;p&gt;The complete results for two variations of the problem
can be found on &lt;a class="reference external" href="https://web.zvr.gr/files/antiNqueens.pdf"&gt;this document&lt;/a&gt;.
The same paper has been published online
and has a &lt;span class="caps"&gt;DOI&lt;/span&gt; of&amp;nbsp;10.5281/zenodo.4672187&lt;/p&gt;
&lt;a class="reference external image-reference" href="https://doi.org/10.5281/zenodo.4672187"&gt;&lt;object data="https://zenodo.org/badge/DOI/10.5281/zenodo.4672187.svg" type="image/svg+xml"&gt;&lt;/object&gt;&lt;/a&gt;
&lt;div class="section" id="update"&gt;
&lt;h2&gt;Update&lt;/h2&gt;
&lt;p&gt;My results for the maximum number of safe squares
when placing N queens on a standard 8x8 chessboard
were accepted and published
in the Online Encyclopedia of Integer Sequences (&lt;span class="caps"&gt;OEIS&lt;/span&gt;)
as &lt;a class="reference external" href="http://oeis.org/A342151"&gt;sequence A342151&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
</content><category term="explorations"></category><category term="math"></category><category term="fun"></category><category term="puzzle"></category></entry><entry><title>55</title><link href="https://web.zvr.gr/bday-55.html" rel="alternate"></link><published>2020-11-22T00:00:00+01:00</published><updated>2020-11-22T00:00:00+01:00</updated><author><name>zvr</name></author><id>tag:web.zvr.gr,2020-11-22:/bday-55.html</id><summary type="html">&lt;p class="first last"&gt;55th&amp;nbsp;birthday&lt;/p&gt;
</summary><content type="html">&lt;img alt="" src="https://web.zvr.gr/images/55.jpg" style="width: 599px; height: 591px;" /&gt;
&lt;p&gt;Largest Fibonacci number to also be a triangular&amp;nbsp;number.&lt;/p&gt;
&lt;p&gt;2-Kaprekar number in base 10, but also in bases 6, 16, and&amp;nbsp;46.&lt;/p&gt;
&lt;p&gt;Square pyramidal number
heptagonal number,
and centered nonagonal&amp;nbsp;number.&lt;/p&gt;
</content><category term="dates"></category><category term="math"></category><category term="date"></category></entry><entry><title>54</title><link href="https://web.zvr.gr/bday-54.html" rel="alternate"></link><published>2019-11-22T00:00:00+01:00</published><updated>2019-11-22T00:00:00+01:00</updated><author><name>zvr</name></author><id>tag:web.zvr.gr,2019-11-22:/bday-54.html</id><summary type="html">&lt;p class="first last"&gt;54th&amp;nbsp;birthday&lt;/p&gt;
</summary><content type="html">&lt;img alt="" src="https://web.zvr.gr/images/53.jpg" style="width: 1058px; height: 762px;" /&gt;
</content><category term="dates"></category><category term="date"></category><category term="math"></category></entry><entry><title>53</title><link href="https://web.zvr.gr/bday-53.html" rel="alternate"></link><published>2018-11-22T00:00:00+01:00</published><updated>2018-11-22T00:00:00+01:00</updated><author><name>zvr</name></author><id>tag:web.zvr.gr,2018-11-22:/bday-53.html</id><summary type="html">&lt;p class="first last"&gt;53rd&amp;nbsp;birthday&lt;/p&gt;
</summary><content type="html">&lt;img alt="" src="https://web.zvr.gr/images/53.jpg" style="width: 850px; height: 445px;" /&gt;
&lt;p&gt;In hexadecimal: 35 (same digits,&amp;nbsp;reversed)&lt;/p&gt;
&lt;p&gt;Prime number,
self number (in base 10),
Eisenstein prime,
Sophie Germain prime,
and it divides the sum of the first 53 primes&amp;nbsp;(A045345).&lt;/p&gt;
&lt;p&gt;Not a bad age to be&amp;nbsp;in&amp;#8230;&lt;/p&gt;
</content><category term="dates"></category><category term="date"></category><category term="math"></category></entry><entry><title>27</title><link href="https://web.zvr.gr/anniv-27.html" rel="alternate"></link><published>2018-09-07T00:00:00+02:00</published><updated>2018-09-07T00:00:00+02:00</updated><author><name>zvr</name></author><id>tag:web.zvr.gr,2018-09-07:/anniv-27.html</id><summary type="html">&lt;p class="first last"&gt;27th wedding&amp;nbsp;anniversary&lt;/p&gt;
</summary><content type="html">&lt;img alt="" src="https://web.zvr.gr/images/27.jpg" style="width: 429px; height: 302px;" /&gt;
&lt;p&gt;27: age in which Brian Jones,
Jimi Hendrix,
Janis Joplin,
Jim Morrison,
Kurt Cobain,
and Amy Winehouse&amp;nbsp;died.&lt;/p&gt;
&lt;p&gt;27: years that our marriage is&amp;nbsp;alive.&lt;/p&gt;
</content><category term="dates"></category><category term="date"></category></entry></feed>