{ localUrl: '../page/modular_arithmetic.html', arbitalUrl: 'https://arbital.com/p/modular_arithmetic', rawJsonUrl: '../raw/5ns.json', likeableId: '3292', likeableType: 'page', myLikeValue: '0', likeCount: '1', dislikeCount: '0', likeScore: '1', individualLikes: [ 'EricBruylant' ], pageId: 'modular_arithmetic', edit: '3', editSummary: 'links and minor changes', prevEdit: '2', currentEdit: '3', wasPublished: 'true', type: 'wiki', title: 'Modular arithmetic', clickbait: 'Addition as traveling around a circle, instead of along a line.', textLength: '1850', alias: 'modular_arithmetic', externalUrl: '', sortChildrenBy: 'likes', hasVote: 'false', voteType: '', votesAnonymous: 'false', editCreatorId: 'EricBruylant', editCreatedAt: '2016-08-02 17:29:56', pageCreatorId: 'MalcolmMcCrimmon', pageCreatedAt: '2016-07-30 02:15:34', seeDomainId: '0', editDomainId: 'AlexeiAndreev', submitToDomainId: '0', isAutosave: 'false', isSnapshot: 'false', isLiveEdit: 'true', isMinorEdit: 'false', indirectTeacher: 'false', todoCount: '1', isEditorComment: 'false', isApprovedComment: 'true', isResolved: 'false', snapshotText: '', anchorContext: '', anchorText: '', anchorOffset: '0', mergedInto: '', isDeleted: 'false', viewCount: '35', text: '[summary:\nModular arithmetic is the type of [-addition] we use when calculating dates and times. In ordinary [-arithmetic], $9 + 6 = 15$, but when working with the hours of the day, 6 hours after 9 o'clock is 3 o'clock, not 15 o'clock. This type of "wrap-around" addition generalizes to many other domains.\n]\n\n[todo: needs images!]\n\nIn ordinary [-arithmetic], you can think of [-addition] and [-subtraction] as traveling in different directions along an [infinity infinitely] long road. A calculation like $9 + 6$ can be thought of as starting at kilometer marker 9, then driving for another 6 kilometers, which would bring you to kilometer marker 15 ([-negative_numbers] are analogous to driving along the road backwards). If the road is perfectly straight, you can never go back to a marker you've already visited by driving forward. But what if the road were a circle?\n\nModular arithmetic is a type of addition that's more like driving around in a circle than along an infinite straight line. In modular arithmetic, you can start with a number, add a positive number to it, and come out with the same number you started with--just as you can drive forward on a circular road to get right back where you started. If the length of the road were 12, for example, then if you drove 12 kilometers you would wind up right back where you started. In this case, we would call it *modulus 12* arithmetic, or *mod 12* for short.\n\nModular arithmetic may seem strange, but in fact, you probably use it every day! The hours on the face of a clock "wrap around" from 12 to 1 in exactly the same way that a circular road wraps around on itself. Thus, while in ordinary arithmetic $9 + 6 = 15$, when figuring out what time it will be 6 hours after 9 o'clock, we use modular arithmetic to arrive at the correct answer of 3 o'clock, rather than 15 o'clock.', metaText: '', isTextLoaded: 'true', isSubscribedToDiscussion: 'false', isSubscribedToUser: 'false', isSubscribedAsMaintainer: 'false', discussionSubscriberCount: '2', maintainerCount: '2', userSubscriberCount: '0', lastVisit: '', hasDraft: 'false', votes: [], voteSummary: 'null', muVoteSummary: '0', voteScaling: '0', currentUserVote: '-2', voteCount: '0', lockedVoteType: '', maxEditEver: '0', redLinkCount: '0', lockedBy: '', lockedUntil: '', nextPageId: '', prevPageId: '', usedAsMastery: 'false', proposalEditNum: '0', permissions: { edit: { has: 'false', reason: 'You don't have domain permission to edit this page' }, proposeEdit: { has: 'true', reason: '' }, delete: { has: 'false', reason: 'You don't have domain permission to delete this page' }, comment: { has: 'false', reason: 'You can't comment in this domain because you are not a member' }, proposeComment: { has: 'true', reason: '' } }, summaries: {}, creatorIds: [ 'MalcolmMcCrimmon', 'EricBruylant' ], childIds: [], parentIds: [ 'math' ], commentIds: [], questionIds: [], tagIds: [ 'start_meta_tag', 'cyclic_group_intro_math_0', 'needs_parent_meta_tag' ], relatedIds: [], markIds: [], explanations: [], learnMore: [], requirements: [], subjects: [], lenses: [], lensParentId: '', pathPages: [], learnMoreTaughtMap: {}, learnMoreCoveredMap: {}, learnMoreRequiredMap: {}, editHistory: {}, domainSubmissions: {}, answers: [], answerCount: '0', commentCount: '0', newCommentCount: '0', linkedMarkCount: '0', changeLogs: [ { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '18146', pageId: 'modular_arithmetic', userId: 'EricBruylant', edit: '3', type: 'newEdit', createdAt: '2016-08-02 17:29:56', auxPageId: '', oldSettingsValue: '', newSettingsValue: 'links and minor changes' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '17914', pageId: 'modular_arithmetic', userId: 'MarkChimes', edit: '0', type: 'newTag', createdAt: '2016-08-01 10:15:57', auxPageId: 'cyclic_group_intro_math_0', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '17787', pageId: 'modular_arithmetic', userId: 'PatrickStevens', edit: '0', type: 'newAlias', createdAt: '2016-07-30 07:17:08', auxPageId: '', oldSettingsValue: '5ns', newSettingsValue: 'modular_arithmetic' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '17784', pageId: 'modular_arithmetic', userId: 'EricRogstad', edit: '0', type: 'newParent', createdAt: '2016-07-30 03:55:09', auxPageId: 'math', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '17777', pageId: 'modular_arithmetic', userId: 'MalcolmMcCrimmon', edit: '2', type: 'newEdit', createdAt: '2016-07-30 02:26:35', auxPageId: '', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '17776', pageId: 'modular_arithmetic', userId: 'MalcolmMcCrimmon', edit: '0', type: 'deleteTag', createdAt: '2016-07-30 02:17:48', auxPageId: 'needs_technical_summary_meta_tag', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '17774', pageId: 'modular_arithmetic', userId: 'MalcolmMcCrimmon', edit: '0', type: 'newTag', createdAt: '2016-07-30 02:17:40', auxPageId: 'needs_technical_summary_meta_tag', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '17773', pageId: 'modular_arithmetic', userId: 'MalcolmMcCrimmon', edit: '0', type: 'newTag', createdAt: '2016-07-30 02:17:24', auxPageId: 'needs_parent_meta_tag', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '17772', pageId: 'modular_arithmetic', userId: 'MalcolmMcCrimmon', edit: '0', type: 'newTag', createdAt: '2016-07-30 02:16:24', auxPageId: 'start_meta_tag', oldSettingsValue: '', newSettingsValue: '' }, { likeableId: '0', likeableType: 'changeLog', myLikeValue: '0', likeCount: '0', dislikeCount: '0', likeScore: '0', individualLikes: [], id: '17771', pageId: 'modular_arithmetic', userId: 'MalcolmMcCrimmon', edit: '1', type: 'newEdit', createdAt: '2016-07-30 02:15:34', auxPageId: '', oldSettingsValue: '', newSettingsValue: 'Very simplistic and text-heavy introduction. Needs images, more technical lens(es).' } ], feedSubmissions: [], searchStrings: {}, hasChildren: 'false', hasParents: 'true', redAliases: {}, improvementTagIds: [], nonMetaTagIds: [], todos: [], slowDownMap: 'null', speedUpMap: 'null', arcPageIds: 'null', contentRequests: {} }