Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Square-free integer
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Encoding as binary numbers== If we represent a square-free number as the infinite product :<math>\prod_{n=0}^\infty (p_{n+1})^{a_n}, a_n \in \lbrace 0, 1 \rbrace,\text{ and }p_n\text{ is the }n\text{th prime}, </math> then we may take those <math>a_n</math> and use them as bits in a binary number with the encoding :<math>\sum_{n=0}^\infty {a_n}\cdot 2^n .</math> The square-free number 42 has factorization {{nowrap|2 脳 3 脳 7}}, or as an infinite product {{nowrap|2<sup>1</sup> 路 3<sup>1</sup> 路 5<sup>0</sup> 路 7<sup>1</sup> 路 11<sup>0</sup> 路 13<sup>0</sup> 路路路}} Thus the number 42 may be encoded as the binary sequence <code>...001011</code> or 11 decimal. (The binary digits are reversed from the ordering in the infinite product.) Since the prime factorization of every number is unique, so also is every binary encoding of the square-free integers. The converse is also true. Since every positive integer has a unique binary representation it is possible to reverse this encoding so that they may be decoded into a unique square-free integer. Again, for example, if we begin with the number 42, this time as simply a positive integer, we have its binary representation <code>101010</code>. This decodes to {{nowrap|2<sup>0</sup> 路 3<sup>1</sup> 路 5<sup>0</sup> 路 7<sup>1</sup> 路 11<sup>0</sup> 路 13<sup>1</sup> {{=}} 3 脳 7 脳 13 {{=}} 273.}} Thus binary encoding of squarefree numbers describes a [[bijection]] between the nonnegative integers and the set of positive squarefree integers. (See sequences [[OEIS:A019565|A019565]], [[OEIS:A048672|A048672]] and [[OEIS:A064273|A064273]] in the [[On-Line Encyclopedia of Integer Sequences|OEIS]].)
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Square-free integer
(section)
Add topic