diff options
Diffstat (limited to 'factors/digit_map.go')
| -rw-r--r-- | factors/digit_map.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/factors/digit_map.go b/factors/digit_map.go index db562db..83606e9 100644 --- a/factors/digit_map.go +++ b/factors/digit_map.go @@ -7,28 +7,28 @@ type DigitType struct { totativeType TotativeType } -type TotativeType uint8 +type TotativeType byte const ( // This number does not have any totative factors - Regular TotativeType = iota + Regular TotativeType = 0xC0 // This number's totative part is divisible by (r - 1) // - this gives it the simplest possible decimal expansion // for a non-regular (1 digit repeating) and a simple divisibility // test (sum digits, like 3 or 9 in decimal) - Omega + Omega TotativeType = 0xA0 // This number's totative part is divisible by (r + 1) // - this makes it slightly more complicated than omega - Alpha + Alpha TotativeType = 0x80 // This number's totative part is divisible by (r^2 - 1) // but not (r + 1) or (r - 1) // - these totatives straddle the line between simple and complex - Pseudoneighbour + Pseudoneighbour TotativeType = 0x60 // This number's totative part is not divisible by (r^2 - 1) // - it will not be nice to work with - Opaque + Opaque TotativeType = 0x40 // This number is zero, and doesn't have a true totative type. - Zero + Zero TotativeType = 0x00 ) // Zero and one will always have these types. |
