Skip to content

Instantly share code, notes, and snippets.

@dfinke
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dfinke/064c149320244f62520c to your computer and use it in GitHub Desktop.
Save dfinke/064c149320244f62520c to your computer and use it in GitHub Desktop.
Lusus Numerorum - . Strange coincidences of a lusus numerorum. "Magic squares and cubes" - Paul Carus
1..10 | ForEach {
$r = 0..($_-1) -join ''
$exp = "$($r)*9+$_"
"{0,15}={1}" -f $exp, ($exp|Invoke-Expression)
}
''
1..9 | ForEach {
$r = 1..($_) -join ''
$exp = "$($r)*8+$_"
"{0,15}={1}" -f $exp, ($exp|Invoke-Expression)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment