User:Brown.ry/sandbox

From Wikipedia, the free encyclopedia

Wikipedia policies[edit]

Text

Wikipedia:Identifying_reliable_sources_(medicine)

Fourier_transform

Riemann_zeta_function

Permutation

http://www.google.com

This text should be referenced.[1]

This text should also be referenced.[2]

Enumeration of magic squares[edit]

As mentioned above, the set of normal squares of order three constitutes a single equivalence class-all equivalent to the Lo Shu square. Thus there is basically just one normal magic square of order 3. But the number of distinct normal magic squares rapidly increases for higher orders.[3] There are 880 distinct magic squares of order 4 and 275,305,224 of order 5.[4] The number of distinct normal squares is not yet known for any higher order.[5]

Semi-log plot of Pn, the probability of magic squares of dimension n

Algorithms tend to only generate magic squares of a certain type or classification, making counting all possible magic squares quite difficult. Traditional counting methods have proven unsuccessful, statistical analysis using the Monte Carlo method has been applied. The basic principle applied to magic squares is to randomly generate n × n matrices of elements 1 to n2 and check if the result is a magic square. The probability that a randomly generated matrix of numbers is a magic square is directly proportional to the number of magic squares.[6]

More intricate versions of the Monte Carlo method, such as the exchange Monte Carlo, and Monte Carlo Backtracking have produced even more accurate estimations. Using these methods it has been shown that the probability of magic squares decreases rapidly as n increases. Using fitting functions give the curves seen to the right.

Subsection[edit]

References[edit]

  1. ^ Reference yo
  2. ^ Another reference!
  3. ^ How many magic squares are there? by Walter Trump, Nürnberg, January 11, 2001
  4. ^ A006052 in the on-line encyclopedia of integer sequences
  5. ^ Anything but square: from magic squares to Sudoku by Hardeep Aiden, Plus Magazine, March 1, 2006
  6. ^ Kitajima, Akimasa; Kikuchi, Macoto; Altmann, Eduardo G. (14 May 2015). "Numerous but Rare: An Exploration of Magic Squares". PLOS ONE. 10 (5): e0125062. doi:10.1371/journal.pone.0125062. PMID PMC4431883. {{cite journal}}: |access-date= requires |url= (help); Check |pmid= value (help)CS1 maint: unflagged free DOI (link)