Misc

  AI
  Chat
  CyberSquatting
  English
  Geek Code
  I18N
  Innovation
  Services
  Smiley
  Sound
  Wombat
  zamzar.com  MP4 to GIF  (14.02.2019)

Gutes Ergebnis

  topos-online  Computer-Murphologie  (31.12.2005)

3.1 Jedes fertige Programm, das läuft, ist veraltet.
3.2 Wenn ein Programm nützlich ist, muss es geändert werden.
3.3 Wenn ein Programm nutzlos ist, muss es dokumentiert werden.
3.4 Jede Programmentwicklung wächst so lange, bis es die Fähigkeiten des Programmierers übertrifft, der es weiterführen muss.
3.5 Erst wenn ein Programm mindestens 6 Monate läuft, wird der katastrophale Fehler entdeckt werden.
3.6 Programmiere ein System, das selbst ein Irrer anwenden kann, und so wird es auch nur ein Irrer anwenden wollen.
3.7 Ein sorglos geplantes Projekt dauert sechsmal so lange als erwartet.
Ein sorgfältig geplantes Projekt nur dreimal so lange.
3.8 Jeder Programmierer programmiert stets so lange bis der ihm zur Verfügung stehende Speicher aufgebraucht ist.
3.9 Der Fehler befindet sich immer in der Routine, die niemals getestet wurde.
3.10 Fluchen ist die einzige Sprache, die alle Programmierer wirklich beherrschen.

  Divisibility (25.03.2005)

Simple tests for divisibility by N can be obtained by looking at the powers of 10 mod N. The rules for 3 and 9, where you simply add the digits of the number, work because 10 mod 3 = 10 mod 9 = 1. A similar rule can be obtained for divisibility by 11 since 10 mod 11 = -1: Add the digits with alternating signs.
The case where N = 7 is tougher, since 10 mod 7 is 3. The weights you get are 1, 3, 2, -1, -3, -2, 1, 3, etc. The sequence of six weights repeats forever. To apply these, remember to start with the units digit.
For example, is 106638 divisible by 7?
Compute 1*8 + 3*3 + 2*6 - 1*6 - 3*0 - 2*1 = 21. The answer is divisible by 7, so 106638 is divisible by 7.

Here are divisibility rules for small values of N:
2 Is last digit even?
3 Sum digits, is result divisible by 3?
4 Is the two digit number formed by the last two digits divisible by 4? Or, sum these last two digits with weights 1 and 2. Weights for all higher digits are 0. Is result divisible by 4?
5 Is last digit 0 or 5?
6 Is it divisible by both 2 and 3?
7 Sum digits with weights 1, 3, 2, -1, -3, -2, repeating. Is sum divisible by 7?
8 Sum last three digits with weights 1, 2, 4. Weights for all higher digits are 0. Is result divisible by 8?
9 Sum digits, is result divisible by 9?
10 Is last digit 0?
11 Sum digits with alternating signs. Is result divisible by 11?
12 Is it divisible by both 3 and 4?
13 Buy a cheap calculator.
14 Both 2 and 7.
15 Both 3 and 5.
16 If it's divisible by 8, guess. You have a 50% chance of being right.

  Wolfram  Eric Weisstein:  MathWorld  (07.12.2003)

The web's most extensive resource of mathematics.


Zur Liste
Neue Unter-Kategorie
Neuer Eintrag