smallest n digit number which is multiple of 7Finding the smallest baseA big “smallest” numberWhat's the...
What word means "to make something obsolete"?
Stark VS Thanos
Short story about people living in a different time streams
Hang 20lb projector screen on hardieplank
What are the spoon bit of a spoon and fork bit of a fork called?
You look catfish vs You look like a catfish?
How to implement float hashing with approximate equality
How to efficiently calculate prefix sum of frequencies of characters in a string?
Loading but not using TikZ changes a file
How can I close a gap between my fence and my neighbor's that's on his side of the property line?
CRT Oscilloscope - part of the plot is missing
Map one pandas column using two dictionaries
Public Salesforce Site and Security Review
Does the time required to copy a spell into a spellbook have to be consecutive, or is that just the cumulative time required?
Floor tile layout process?
I lost my Irish passport. Can I travel to Thailand and back from the UK using my US passport?
How long can a 35mm film be used/stored before it starts to lose its quality after expiry?
I caught several of my students plagiarizing. Could it be my fault as a teacher?
Is balancing necessary on a full-wheel change?
Is every dg-coalgebra the colimit of its finite dimensional dg-subcoalgebras?
Is lying to get "gardening leave" fraud?
Can a cyclic Amine form an Amide?
How could a planet have most of its water in the atmosphere?
If Earth is tilted, why is Polaris always above the same spot?
smallest n digit number which is multiple of 7
Finding the smallest baseA big “smallest” numberWhat's the smallest number with first digit 1 that triples when this digit is moved to the end?Find the smallest natural number $n$Determine the smallest prime which does not divide any five digit number…Smallest multiple containing only 1's and 0'sSmallest number starting with N divisble by every non zero digit of NBy which convention 04 (for example) is no valid 2 digit number?What is the smallest number $n>2$ of this kind?What's the smallest three digit number that satisfies the following system of congruences?
$begingroup$
I want to find the smallest n digit number which is a multiple of $7$. For example, when $n=1$ then $7$ is the answer, if $n=2$ then $14$ is the answer, if $n=3$ then $105$ is the answer. What will be the answer for $n$th term?
sequences-and-series elementary-number-theory
$endgroup$
add a comment |
$begingroup$
I want to find the smallest n digit number which is a multiple of $7$. For example, when $n=1$ then $7$ is the answer, if $n=2$ then $14$ is the answer, if $n=3$ then $105$ is the answer. What will be the answer for $n$th term?
sequences-and-series elementary-number-theory
$endgroup$
1
$begingroup$
Are you familiar with modular arithmetic?
$endgroup$
– Arthur
7 hours ago
$begingroup$
yes i am familiar.
$endgroup$
– sr123
7 hours ago
$begingroup$
$!bmod 7!:, 10^{large n-1}!+k,equiv, 0iff k,equiv,ldots $
$endgroup$
– Bill Dubuque
7 hours ago
add a comment |
$begingroup$
I want to find the smallest n digit number which is a multiple of $7$. For example, when $n=1$ then $7$ is the answer, if $n=2$ then $14$ is the answer, if $n=3$ then $105$ is the answer. What will be the answer for $n$th term?
sequences-and-series elementary-number-theory
$endgroup$
I want to find the smallest n digit number which is a multiple of $7$. For example, when $n=1$ then $7$ is the answer, if $n=2$ then $14$ is the answer, if $n=3$ then $105$ is the answer. What will be the answer for $n$th term?
sequences-and-series elementary-number-theory
sequences-and-series elementary-number-theory
edited 6 hours ago
tarit goswami
2,4761522
2,4761522
asked 7 hours ago
sr123sr123
254
254
1
$begingroup$
Are you familiar with modular arithmetic?
$endgroup$
– Arthur
7 hours ago
$begingroup$
yes i am familiar.
$endgroup$
– sr123
7 hours ago
$begingroup$
$!bmod 7!:, 10^{large n-1}!+k,equiv, 0iff k,equiv,ldots $
$endgroup$
– Bill Dubuque
7 hours ago
add a comment |
1
$begingroup$
Are you familiar with modular arithmetic?
$endgroup$
– Arthur
7 hours ago
$begingroup$
yes i am familiar.
$endgroup$
– sr123
7 hours ago
$begingroup$
$!bmod 7!:, 10^{large n-1}!+k,equiv, 0iff k,equiv,ldots $
$endgroup$
– Bill Dubuque
7 hours ago
1
1
$begingroup$
Are you familiar with modular arithmetic?
$endgroup$
– Arthur
7 hours ago
$begingroup$
Are you familiar with modular arithmetic?
$endgroup$
– Arthur
7 hours ago
$begingroup$
yes i am familiar.
$endgroup$
– sr123
7 hours ago
$begingroup$
yes i am familiar.
$endgroup$
– sr123
7 hours ago
$begingroup$
$!bmod 7!:, 10^{large n-1}!+k,equiv, 0iff k,equiv,ldots $
$endgroup$
– Bill Dubuque
7 hours ago
$begingroup$
$!bmod 7!:, 10^{large n-1}!+k,equiv, 0iff k,equiv,ldots $
$endgroup$
– Bill Dubuque
7 hours ago
add a comment |
3 Answers
3
active
oldest
votes
$begingroup$
The $n$ th term of the sequence will be $$10^{n-1}+big(7-(10^{n-1}pmod{7})big)$$
Because to get a $n$ digit number you will need at least $10^{n-1}$, now suppose the number is of the form $10^{n-1}+k$ for some natural $k$, for divisibility we need $(10^{n-1}+k)equiv 0 pmod{7}$ and to satisfy the minimality condition we need $kin [0,6].$ And $7-10^{n-1}pmod{7}in [0,6]$, hence the result:
$$a_n=10^{n-1}+big(7-(10^{n-1}pmod{7})big)$$
$endgroup$
add a comment |
$begingroup$
Hint The function $k mapsto m leftlceil frac{k}{m} rightrceil$ maps $k$ to the smallest integer multiple of $m$ at least as large as $k$.
For an integer $n > 0$ the smallest $n$-digit number is $10^{n - 1}$, so the the smallest $n$-digit number that is a multiple of $7$ is $$7leftlceilfrac{10^{n - 1}}{7}rightrceil.$$ The sequence begins $$7, 14, 105, 1001, 10003, ldots .$$ Since $10^{n - 1} equiv 3^{n - 1} pmod 7$ and $3$ has order $6$ in $Bbb Z_7^times$, (except for the first term, $7$) the smallest $n$-digit number that is a multiple of $7$ is $10^{n - 1} + r(n)$, where $r(n)$ depends only on the value of $n pmod 6$, i.e., the trailing digits $4, 5, 1, 3, ldots$ repeat every six terms.
$endgroup$
add a comment |
$begingroup$
Solve
$$(10^n+c)bmod 7=0$$ for the smallest positive $c$.
You have
$$(10^n+c)bmod7=(10^nbmod 7+cbmod 7)bmod 7=0$$
so that $$c=7-10^nbmod 7.$$
$endgroup$
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3207020%2fsmallest-n-digit-number-which-is-multiple-of-7%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
The $n$ th term of the sequence will be $$10^{n-1}+big(7-(10^{n-1}pmod{7})big)$$
Because to get a $n$ digit number you will need at least $10^{n-1}$, now suppose the number is of the form $10^{n-1}+k$ for some natural $k$, for divisibility we need $(10^{n-1}+k)equiv 0 pmod{7}$ and to satisfy the minimality condition we need $kin [0,6].$ And $7-10^{n-1}pmod{7}in [0,6]$, hence the result:
$$a_n=10^{n-1}+big(7-(10^{n-1}pmod{7})big)$$
$endgroup$
add a comment |
$begingroup$
The $n$ th term of the sequence will be $$10^{n-1}+big(7-(10^{n-1}pmod{7})big)$$
Because to get a $n$ digit number you will need at least $10^{n-1}$, now suppose the number is of the form $10^{n-1}+k$ for some natural $k$, for divisibility we need $(10^{n-1}+k)equiv 0 pmod{7}$ and to satisfy the minimality condition we need $kin [0,6].$ And $7-10^{n-1}pmod{7}in [0,6]$, hence the result:
$$a_n=10^{n-1}+big(7-(10^{n-1}pmod{7})big)$$
$endgroup$
add a comment |
$begingroup$
The $n$ th term of the sequence will be $$10^{n-1}+big(7-(10^{n-1}pmod{7})big)$$
Because to get a $n$ digit number you will need at least $10^{n-1}$, now suppose the number is of the form $10^{n-1}+k$ for some natural $k$, for divisibility we need $(10^{n-1}+k)equiv 0 pmod{7}$ and to satisfy the minimality condition we need $kin [0,6].$ And $7-10^{n-1}pmod{7}in [0,6]$, hence the result:
$$a_n=10^{n-1}+big(7-(10^{n-1}pmod{7})big)$$
$endgroup$
The $n$ th term of the sequence will be $$10^{n-1}+big(7-(10^{n-1}pmod{7})big)$$
Because to get a $n$ digit number you will need at least $10^{n-1}$, now suppose the number is of the form $10^{n-1}+k$ for some natural $k$, for divisibility we need $(10^{n-1}+k)equiv 0 pmod{7}$ and to satisfy the minimality condition we need $kin [0,6].$ And $7-10^{n-1}pmod{7}in [0,6]$, hence the result:
$$a_n=10^{n-1}+big(7-(10^{n-1}pmod{7})big)$$
edited 6 hours ago
answered 7 hours ago
tarit goswamitarit goswami
2,4761522
2,4761522
add a comment |
add a comment |
$begingroup$
Hint The function $k mapsto m leftlceil frac{k}{m} rightrceil$ maps $k$ to the smallest integer multiple of $m$ at least as large as $k$.
For an integer $n > 0$ the smallest $n$-digit number is $10^{n - 1}$, so the the smallest $n$-digit number that is a multiple of $7$ is $$7leftlceilfrac{10^{n - 1}}{7}rightrceil.$$ The sequence begins $$7, 14, 105, 1001, 10003, ldots .$$ Since $10^{n - 1} equiv 3^{n - 1} pmod 7$ and $3$ has order $6$ in $Bbb Z_7^times$, (except for the first term, $7$) the smallest $n$-digit number that is a multiple of $7$ is $10^{n - 1} + r(n)$, where $r(n)$ depends only on the value of $n pmod 6$, i.e., the trailing digits $4, 5, 1, 3, ldots$ repeat every six terms.
$endgroup$
add a comment |
$begingroup$
Hint The function $k mapsto m leftlceil frac{k}{m} rightrceil$ maps $k$ to the smallest integer multiple of $m$ at least as large as $k$.
For an integer $n > 0$ the smallest $n$-digit number is $10^{n - 1}$, so the the smallest $n$-digit number that is a multiple of $7$ is $$7leftlceilfrac{10^{n - 1}}{7}rightrceil.$$ The sequence begins $$7, 14, 105, 1001, 10003, ldots .$$ Since $10^{n - 1} equiv 3^{n - 1} pmod 7$ and $3$ has order $6$ in $Bbb Z_7^times$, (except for the first term, $7$) the smallest $n$-digit number that is a multiple of $7$ is $10^{n - 1} + r(n)$, where $r(n)$ depends only on the value of $n pmod 6$, i.e., the trailing digits $4, 5, 1, 3, ldots$ repeat every six terms.
$endgroup$
add a comment |
$begingroup$
Hint The function $k mapsto m leftlceil frac{k}{m} rightrceil$ maps $k$ to the smallest integer multiple of $m$ at least as large as $k$.
For an integer $n > 0$ the smallest $n$-digit number is $10^{n - 1}$, so the the smallest $n$-digit number that is a multiple of $7$ is $$7leftlceilfrac{10^{n - 1}}{7}rightrceil.$$ The sequence begins $$7, 14, 105, 1001, 10003, ldots .$$ Since $10^{n - 1} equiv 3^{n - 1} pmod 7$ and $3$ has order $6$ in $Bbb Z_7^times$, (except for the first term, $7$) the smallest $n$-digit number that is a multiple of $7$ is $10^{n - 1} + r(n)$, where $r(n)$ depends only on the value of $n pmod 6$, i.e., the trailing digits $4, 5, 1, 3, ldots$ repeat every six terms.
$endgroup$
Hint The function $k mapsto m leftlceil frac{k}{m} rightrceil$ maps $k$ to the smallest integer multiple of $m$ at least as large as $k$.
For an integer $n > 0$ the smallest $n$-digit number is $10^{n - 1}$, so the the smallest $n$-digit number that is a multiple of $7$ is $$7leftlceilfrac{10^{n - 1}}{7}rightrceil.$$ The sequence begins $$7, 14, 105, 1001, 10003, ldots .$$ Since $10^{n - 1} equiv 3^{n - 1} pmod 7$ and $3$ has order $6$ in $Bbb Z_7^times$, (except for the first term, $7$) the smallest $n$-digit number that is a multiple of $7$ is $10^{n - 1} + r(n)$, where $r(n)$ depends only on the value of $n pmod 6$, i.e., the trailing digits $4, 5, 1, 3, ldots$ repeat every six terms.
edited 5 hours ago
answered 7 hours ago
TravisTravis
64.9k769152
64.9k769152
add a comment |
add a comment |
$begingroup$
Solve
$$(10^n+c)bmod 7=0$$ for the smallest positive $c$.
You have
$$(10^n+c)bmod7=(10^nbmod 7+cbmod 7)bmod 7=0$$
so that $$c=7-10^nbmod 7.$$
$endgroup$
add a comment |
$begingroup$
Solve
$$(10^n+c)bmod 7=0$$ for the smallest positive $c$.
You have
$$(10^n+c)bmod7=(10^nbmod 7+cbmod 7)bmod 7=0$$
so that $$c=7-10^nbmod 7.$$
$endgroup$
add a comment |
$begingroup$
Solve
$$(10^n+c)bmod 7=0$$ for the smallest positive $c$.
You have
$$(10^n+c)bmod7=(10^nbmod 7+cbmod 7)bmod 7=0$$
so that $$c=7-10^nbmod 7.$$
$endgroup$
Solve
$$(10^n+c)bmod 7=0$$ for the smallest positive $c$.
You have
$$(10^n+c)bmod7=(10^nbmod 7+cbmod 7)bmod 7=0$$
so that $$c=7-10^nbmod 7.$$
edited 6 hours ago
answered 7 hours ago
Yves DaoustYves Daoust
134k676233
134k676233
add a comment |
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3207020%2fsmallest-n-digit-number-which-is-multiple-of-7%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
$begingroup$
Are you familiar with modular arithmetic?
$endgroup$
– Arthur
7 hours ago
$begingroup$
yes i am familiar.
$endgroup$
– sr123
7 hours ago
$begingroup$
$!bmod 7!:, 10^{large n-1}!+k,equiv, 0iff k,equiv,ldots $
$endgroup$
– Bill Dubuque
7 hours ago