flat assembler
Message board for the users of flat assembler.

 Index > Heap > Math symbol for factors of N
Author
typedef

Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
I'm creating ̶s̶u̶m̶ some Math formulas and I was wondering if there's such a thing.

i.e To get the sum of all factors of n
Code:
```A = Sum( factorsOf(n) )
```

Or I'm sure someone could come up with a work around formula.

Last edited by typedef on 19 Feb 2015, 21:19; edited 1 time in total
19 Feb 2015, 20:44
idle

Joined: 06 Jan 2011
Posts: 359
Location: Ukraine
idle
~ n/2 + 2 ?
19 Feb 2015, 20:55
MHajduk

Joined: 30 Mar 2006
Posts: 6034
Location: Poland
MHajduk
typedef wrote:
I'm creating ̶s̶u̶m̶ some Math formulas and I was wondering if there's such a thing.

i.e To get the sum of all factors of n
Code:
```A = Sum( factorsOf(n) )
```

Or I'm sure someone could come up with a work around formula.
I guess you may mean the divisor function that is denoted by small sigma symbol:

for x=1.
19 Feb 2015, 21:47
typedef

Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
MHajduk wrote:
typedef wrote:
I'm creating ̶s̶u̶m̶ some Math formulas and I was wondering if there's such a thing.

i.e To get the sum of all factors of n
Code:
```A = Sum( factorsOf(n) )
```

Or I'm sure someone could come up with a work around formula.
I guess you may mean the divisor function that is denoted by small sigma symbol:

for x=1.

Nice find.

After digging from that page I finally found this one Aliquot Sum σ(n). I chose that one because of its clarity for print; less symbols and characters.

So basically,

A = σ(n) + n

Example, σ( 8 ) + 8 = 15

I'm happy !!
19 Feb 2015, 22:38
MHajduk

Joined: 30 Mar 2006
Posts: 6034
Location: Poland
MHajduk
I'm glad to see that there are people who can feel happy getting to know some facts from Number Theory.
19 Feb 2015, 22:53
typedef

Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
MHajduk wrote:
I'm glad to see that there are people who can feel happy getting to know some facts from Number Theory.

I'm interested in all things numbers and I also generally rejoice when a problem gets solved.

...

On to the next one
19 Feb 2015, 23:05
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First

 Jump to: Select a forum Official----------------AssemblyPeripheria General----------------MainDOSWindowsLinuxUnixMenuetOS Specific----------------MacroinstructionsCompiler InternalsIDE DevelopmentOS ConstructionNon-x86 architecturesHigh Level LanguagesProgramming Language DesignProjects and IdeasExamples and Tutorials Other----------------FeedbackHeapTest Area

Forum Rules:
 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou can attach files in this forumYou can download files in this forum