File:The sum of an integer's unique factors.png

From testwiki
Jump to navigation Jump to search
    Original file (822 × 542 pixels, file size: 84 KB, MIME type: image/png)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: The sum of an integer's unique factors, computed with:

    import numpy as np from functools import reduce

    def factors(n):

       return set(
           reduce(list.__add__, ([i, n//i] for i in range(1, int(n**0.5) + 1) if n % i == 0)))
           
    

    def sigma(n):

    return np.sum(list(factors(n)))
    Date
    Source Own work
    Author J6M8

    Licensing

    I, the copyright holder of this work, hereby publish it under the following license:
    w:en:Creative Commons
    attribution share alike
    This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
    You are free:
    • to share – to copy, distribute and transmit the work
    • to remix – to adapt the work
    Under the following conditions:
    • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
    • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    86,007 byte

    542 pixel

    822 pixel

    image/png

    2ecea08e8b47c68b9eac225a08102fd436a52772

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current04:58, 15 November 2021Thumbnail for version as of 04:58, 15 November 2021822 × 542 (84 KB)wikimediacommons>J6M8Cross-wiki upload from en.wikipedia.org

    There are no pages that use this file.