73 lines
3.9 KiB
Text
73 lines
3.9 KiB
Text
Chowla numbers are also known as:
|
|
::* Chowla's function
|
|
::* chowla numbers
|
|
::* the chowla function
|
|
::* the chowla number
|
|
::* the chowla sequence
|
|
|
|
|
|
|
|
|
|
The chowla number of <big>'''n'''</big> is (as defined by Chowla's function):
|
|
::* the sum of the divisors of <big>'''n'''</big> excluding unity and <big>'''n'''</big>
|
|
::* where <big>'''n'''</big> is a positive integer
|
|
|
|
|
|
|
|
The sequence is named after Sarvadaman D. S. Chowla, (22 October 1907 ──► 10 December 1995),
|
|
<br>a London born Indian American mathematician specializing in ''number theory''.
|
|
|
|
|
|
|
|
German mathematician Carl Friedrich Gauss (1777─1855) said:
|
|
"Mathematics is the queen of the sciences ─ and number theory is the queen of mathematics".
|
|
|
|
|
|
|
|
;Definitions:
|
|
Chowla numbers can also be expressed as:
|
|
<big>
|
|
chowla(<big>'''n'''</big>) = sum of divisors of <big>'''n'''</big> excluding unity and <big>'''n'''</big>
|
|
chowla(<big>'''n'''</big>) = sum( divisors(<big>'''n'''</big>)) <big>'''- 1 - n''' </big>
|
|
chowla(<big>'''n'''</big>) = sum( properDivisors(<big>'''n'''</big>)) <big>'''- 1''' </big>
|
|
chowla(<big>'''n'''</big>) = sum(aliquotDivisors(<big>'''n'''</big>)) <big>'''- 1''' </big>
|
|
chowla(<big>'''n'''</big>) = aliquot(<big>'''n'''</big>) <big>'''- 1''' </big>
|
|
chowla(<big>'''n'''</big>) = sigma(<big>'''n'''</big>) <big>'''- 1 - n''' </big>
|
|
chowla(<big>'''n'''</big>) = sigmaProperDivisiors(<big>'''n'''</big>) <big>'''- 1''' </big>
|
|
|
|
chowla(<big>'''a'''*'''b'''</big>) = <big>'''a + b'''</big>, ''if'' <big>'''a'''</big> and <big>'''b'''</big> are distinct primes
|
|
if chowla(<big>'''n'''</big>) = <big>'''0'''</big>, and <big>'''n > 1'''</big>, then <big>'''n'''</big> is prime
|
|
if chowla(<big>'''n'''</big>) = <big>'''n - 1'''</big>, and <big>'''n > 1'''</big>, then <big>'''n'''</big> is a perfect number
|
|
</big>
|
|
|
|
;Task:
|
|
::* create a '''chowla''' function that returns the '''chowla number''' for a positive integer '''n'''
|
|
::* Find and display (1 per line) for the 1<sup>st</sup> '''37''' integers:
|
|
::::* the integer (the index)
|
|
::::* the chowla number for that integer
|
|
::* For finding primes, use the '''chowla''' function to find values of zero
|
|
::* Find and display the ''count'' of the primes up to '''100'''
|
|
::* Find and display the ''count'' of the primes up to '''1,000'''
|
|
::* Find and display the ''count'' of the primes up to '''10,000'''
|
|
::* Find and display the ''count'' of the primes up to '''100,000'''
|
|
::* Find and display the ''count'' of the primes up to '''1,000,000'''
|
|
::* Find and display the ''count'' of the primes up to '''10,000,000'''
|
|
::* For finding perfect numbers, use the '''chowla''' function to find values of '''n - 1'''
|
|
::* Find and display all perfect numbers up to '''35,000,000'''
|
|
::* use commas within appropriate numbers
|
|
::* show all output here
|
|
|
|
|
|
|
|
|
|
;Related tasks:
|
|
:* [[Totient_function| totient function]]
|
|
:* [[Perfect_numbers| perfect numbers]]
|
|
:* [[Proper divisors]]
|
|
:* [[Sieve of Eratosthenes]]
|
|
|
|
|
|
|
|
;See also:
|
|
:* the OEIS entry for [http://oeis.org/A048050 A48050 Chowla's function].
|
|
<br><br>
|