![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5SdsPx8GpWQ-V1hUx1_MXq3oghxxjA_v2GK6oRSkSaFnyJgq99Dd_xBNAn8zB6RD1CcfNRbk2qlXzwRWcipnlWR4piP5qTZc_45YVeMRStSIlRNvHBrdC4lhy5s1-LRa-v3tc5LdKbTdB/s400/sigma.jpg)
You get the sigma code of a given number n like this:
1. Calculate the sum s of all digits of n.
2. If s is smaller then 10, s is the sigma value.
3. Else set n=s and return to 1.
With this definition it is possible to calculate the sigma values of number sequences. The result of some simple sequences are beautiful patterns:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgurQ-8JFF-S7VOVIx2ElbPi-idjRLcsQ8h4nOASMO8eyGdqjnDJqPCTMBzLzfQ6uVeUmWaqV1BnCuLDWwndqjgFD5VzAwPTUgu70Gy4_zMSG-RDvSvcEdsmDXL4UjQXfniNojqlseevept/s400/sigma1.jpg)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFQ1jQXfzS5bsLsVAoYjtY6vY1bDkxZwfl3zCqGxIpeiqPKaR4zVFSMFIdGagXoqYQN7kHebM_he-nHjPlBR-SD9apNyHZ28R8ARb-3y-MvfrFrnGzw0Esf63SlF8mo-2niYws2P8xcNHc/s400/sigma2.jpg)
This diagrams you obtain from the Fibonacci and the Pell sequence by using (and modifing) the following script: SigmaCode.zip
1 comment:
Amazing blog. Check
gnn news live
express news live
Post a Comment